Skip to content

Commit 01e543a

Browse files
authored
Merge pull request #9 from Lxca128/Lxca128-patch-1
Update release.yml
2 parents e91261f + 34ffa5f commit 01e543a

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
@@ -41,7 +41,8 @@ jobs:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242

4343
- name: Lösche Branch nach Merge
44-
if: github.ref == 'refs/heads/master'
44+
if: github.event.pull_request.merged == true
4545
run: |
46-
BRANCH_NAME=${GITHUB_REF##*/} # extrahiere den Branch-Namen aus dem Ref
46+
BRANCH_NAME=${{ github.head_ref }}
47+
echo "Branch to delete: $BRANCH_NAME"
4748
git push origin --delete $BRANCH_NAME

0 commit comments

Comments
 (0)