We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e91261f + 34ffa5f commit 01e543aCopy full SHA for 01e543a
.github/workflows/release.yml
@@ -41,7 +41,8 @@ jobs:
41
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42
43
- name: Lösche Branch nach Merge
44
- if: github.ref == 'refs/heads/master'
+ if: github.event.pull_request.merged == true
45
run: |
46
- BRANCH_NAME=${GITHUB_REF##*/} # extrahiere den Branch-Namen aus dem Ref
+ BRANCH_NAME=${{ github.head_ref }}
47
+ echo "Branch to delete: $BRANCH_NAME"
48
git push origin --delete $BRANCH_NAME
0 commit comments