Skip to content

Commit

Permalink
fix: wrong delete for remote branch
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Sep 11, 2023
1 parent 6ea276e commit 22e177d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,9 @@ jobs:
add_options: '-u'
create_branch: true

- name: Delete branch
- name: Delete local and remote branches
run: |
git switch ${{ env.DEFAULT_BRANCH }}
git branch -D ${{ steps.branch_name.outputs.BRANCH }}
git branch -D origin/${{ steps.branch_name.outputs.BRANCH }}
git push origin -d ${{ steps.branch_name.outputs.BRANCH }}
git branch -a

0 comments on commit 22e177d

Please sign in to comment.