File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : CI - Continuous Integration
2
2
3
3
on :
4
- pull_request :
4
+ pull_request_target :
5
5
types : [opened, synchronize]
6
6
7
7
26
26
echo $VERCEL_TOKEN
27
27
echo "===="
28
28
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"
30
31
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 }}
31
43
lint :
32
44
runs-on : ubuntu-latest
33
45
steps :
You can’t perform that action at this time.
0 commit comments