We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb2ec5 commit c8239f8Copy full SHA for c8239f8
.github/workflows/cleanup-pr-preview.yml
@@ -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