Skip to content

Commit 60df8c2

Browse files
committed
update
1 parent 998cf2b commit 60df8c2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI - Continuous Integration
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [opened, synchronize]
66

77

@@ -26,8 +26,20 @@ jobs:
2626
echo $VERCEL_TOKEN
2727
echo "===="
2828
yarn install && yarn build:static
29-
npx vercel ./out --yes --token=$VERCEL_TOKEN
29+
DEPLOY_OUTPUT=$(npx vercel ./out --yes --token=$VERCEL_TOKEN)
30+
echo "$DEPLOY_OUTPUT"
3031
echo "deployed with success!"
32+
echo "deploy_output=$DEPLOY_OUTPUT" >> $GITHUB_OUTPUT
33+
id: deploy_step
34+
35+
- name: Create GitHub PR Comment
36+
uses: marocchino/sticky-pull-request-comment@v2
37+
with:
38+
header: Deployment Output
39+
message: |
40+
Deployment Successful!
41+
42+
${{ steps.deploy_step.outputs.deploy_output }}
3143
lint:
3244
runs-on: ubuntu-latest
3345
steps:

0 commit comments

Comments
 (0)