Skip to content

Commit 7f2346c

Browse files
Add cleanup step for closed pull requests
Signed-off-by: Rajesh Nagarajan <139469505+Rajesh-Nagarajan-11@users.noreply.github.com>
1 parent f1b4cf6 commit 7f2346c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ jobs:
4848
submodules: recursive
4949
fetch-depth: 0
5050

51+
- name: Checkout for cleanup
52+
if: github.event.action == 'closed'
53+
uses: actions/checkout@v6
54+
with:
55+
ref: gh-pages
56+
fetch-depth: 0
57+
5158
- name: Install Node.js dependencies
5259
if: github.event.action != 'closed'
5360
run: "[[ -f package-lock.json || -f npm-shrinkwrap.json ]] && npm ci || true"

0 commit comments

Comments
 (0)