From 2578cdb78132562f0d2bbd9dc141c0ef9417ec47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20Sch=C3=BCrch?= Date: Thu, 11 Jul 2024 13:41:15 +0200 Subject: [PATCH] fix(workflows): rename protected release-branches to delete them (#3252) --- .github/workflows/release.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index dba82aa30b..150be401be 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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