We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78f53a commit 734fec6Copy full SHA for 734fec6
.github/workflows/delete_backport_branch.yml
@@ -7,9 +7,16 @@ on:
7
jobs:
8
delete-branch:
9
runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: write
12
if: startsWith(github.event.pull_request.head.ref,'backport/')
13
steps:
14
- name: Delete merged branch
- uses: SvanBoxel/delete-merged-branch@main
- env:
15
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ uses: actions/github-script@v5
16
+ with:
17
+ script: |
18
+ github.rest.git.deleteRef({
19
+ owner: context.repo.owner,
20
+ repo: context.repo.repo,
21
+ ref: `heads/${context.payload.pull_request.head.ref}`,
22
+ })
0 commit comments