Skip to content

Commit 181e4bf

Browse files
committed
Logout if it’s set
1 parent 2375b53 commit 181e4bf

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/pr-preview.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: PR Preview Deploy
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened]
5+
types: [opened, synchronize, reopened, closed, merged]
66

77
jobs:
88
deploy-preview:
@@ -20,6 +20,15 @@ jobs:
2020
- name: Install dependencies
2121
run: npm ci
2222

23+
- name: Check Token Presence
24+
run: |
25+
if [ -n "${{ secrets.TRIGGER_ACCESS_TOKEN }}" ]; then
26+
echo "TRIGGER_ACCESS_TOKEN is set"
27+
else
28+
echo "TRIGGER_ACCESS_TOKEN is not set"
29+
exit 1
30+
fi
31+
2332
- name: Deploy to Preview Environment
2433
run: npx [email protected] deploy --env preview
2534
env:

0 commit comments

Comments
 (0)