Skip to content

Commit fe55ddd

Browse files
authored
ci: auto delete pr branches
1 parent e578856 commit fe55ddd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/purr.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ on:
44
pull_request:
55
types:
66
- opened
7+
- closed
78

89
permissions:
910
pull-requests: write
11+
contents: write
1012

1113
jobs:
1214
purr:
@@ -29,3 +31,13 @@ jobs:
2931
gh pr close "${{ github.event.pull_request.html_url }}" --comment "fick off"
3032
env:
3133
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
durr:
35+
needs: purr
36+
runs-on: ubuntu-latest
37+
if: github.event.pull_request.merged == false
38+
steps:
39+
- name: durr
40+
uses: dawidd6/action-delete-branch@v3
41+
with:
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
43+
numbers: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)