Skip to content

Commit 22e177d

Browse files
committed
fix: wrong delete for remote branch
1 parent 6ea276e commit 22e177d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ jobs:
9696
add_options: '-u'
9797
create_branch: true
9898

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

0 commit comments

Comments
 (0)