Skip to content

Commit

Permalink
Ci: Automatically delete publish branch after the workflow is finished (
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo-COLLIN authored Oct 21, 2024
1 parent 16a2804 commit ffc305b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,3 +140,11 @@ jobs:
chrome-file: releases/${{ steps.package_info.outputs.name }}_${{ steps.package_info.outputs.version }}_chrome.zip
firefox-file: releases/${{ steps.package_info.outputs.name }}_${{ steps.package_info.outputs.version }}_firefox.zip
edge-file: releases/${{ steps.package_info.outputs.name }}_${{ steps.package_info.outputs.version }}_chrome.zip

# --- CLEANUP ---
- name: Delete the 'publish' branch
if: github.ref == 'refs/heads/publish'
run: |
git push origin --delete publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ffc305b

Please sign in to comment.