Skip to content

Commit 45778db

Browse files
committed
Logout the token
1 parent 181e4bf commit 45778db

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/pr-preview.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,10 @@ jobs:
2121
run: npm ci
2222

2323
- name: Check Token Presence
24+
env:
25+
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
2426
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
27+
echo $TRIGGER_ACCESS_TOKEN
3128
3229
- name: Deploy to Preview Environment
3330
run: npx [email protected] deploy --env preview

0 commit comments

Comments
 (0)