Skip to content

Commit

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

- name: Remove Changeset Branch
if: needs.collect-release-data.outputs.release-changeset-branch-exists == 'true'
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 }}
run: git push origin --delete changeset-release/${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }}

- name: Remove Release Branch
if: needs.collect-release-data.outputs.release-branch-exists == 'true'
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 }}
run: git push origin --delete ${{ fromJSON(needs.collect-release-data.outputs.release-data).branchName }}

- name: Create Summary
id: summary
Expand Down

0 comments on commit 10bea3d

Please sign in to comment.