Skip to content

Commit

Permalink
fix(workflows): rename protected release-branches to delete them (#3252)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverschuerch authored Jul 11, 2024
1 parent cf081ce commit 2578cdb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -418,11 +418,15 @@ jobs:

- name: Remove Changeset Branch
if: needs.collect-release-data.outputs.release-changeset-branch-exists == 'true'
run: git push origin --delete changeset-release/${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }}
run: |
git branch -m changeset-release/${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }} delete/v${{ fromJSON(needs.collect-release-data.outputs.release-data).old.major }}
git push origin --delete delete/v${{ fromJSON(needs.collect-release-data.outputs.release-data).old.major }}
- name: Remove Release Branch
if: needs.collect-release-data.outputs.release-branch-exists == 'true'
run: git push origin --delete ${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }}
run: |
git branch -m ${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }} delete/v${{ fromJSON(needs.collect-release-data.outputs.release-data).old.major }}
git push origin --delete delete/v${{ fromJSON(needs.collect-release-data.outputs.release-data).old.major }}
- name: Create Summary
id: summary
Expand Down

0 comments on commit 2578cdb

Please sign in to comment.