Skip to content

Commit e91261f

Browse files
authored
Merge pull request #8 from Lxca128/fix-branch-deletion
Fix branch deletion on merge
2 parents 6c9932f + 2c362c3 commit e91261f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ jobs:
4343
- name: Lösche Branch nach Merge
4444
if: github.ref == 'refs/heads/master'
4545
run: |
46-
git push origin --delete ${{ github.head_ref }}
46+
BRANCH_NAME=${GITHUB_REF##*/} # extrahiere den Branch-Namen aus dem Ref
47+
git push origin --delete $BRANCH_NAME

0 commit comments

Comments
 (0)