Skip to content

Commit c8239f8

Browse files
committed
Add cleanup workflow
1 parent 0eb2ec5 commit c8239f8

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
pull_request:
3+
types:
4+
- closed
5+
jobs:
6+
cleanup:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
contents: write
10+
steps:
11+
- uses: actions/checkout@v4
12+
with:
13+
ref: gh-pages
14+
- run: git config user.name "github-actions[bot]"
15+
- run: git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
16+
- run: git rm ${{ github.ref_name }}
17+
- run: git commit -m 'Cleaning up gh-pages after ${{ github.ref_name }}'
18+
- uses: ad-m/github-push-action@master

0 commit comments

Comments
 (0)