-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (30 loc) · 978 Bytes
/
pr-teardown.yaml
File metadata and controls
38 lines (30 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Pull Request Teardown
on:
pull_request_target:
types:
- closed
concurrency:
group: pr-build-${{ github.ref }}
cancel-in-progress: true
jobs:
teardown:
runs-on: ubuntu-latest
steps:
- name: Setup NPM
uses: actions/setup-node@v6
with:
node-version: 24
- name: Install Surge
run: npm install -g surge
- name: Teardown Surge
run: |
surge teardown https://chunky-dev-docs-pr-${{ github.event.pull_request.number }}.surge.sh --token ${{ secrets.SURGE_TOKEN }} || true
- name: Update Comment
uses: actions-cool/maintain-one-comment@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
PR Preview has been destroyed since this PR is closed.
<!-- Sticky Pull Request Comment -->
body-include: "<!-- Sticky Pull Request Comment -->"
number: ${{ github.event.pull_request.number }}