File tree Expand file tree Collapse file tree 1 file changed +1
-37
lines changed
Expand file tree Collapse file tree 1 file changed +1
-37
lines changed Original file line number Diff line number Diff line change 55 push :
66 branches :
77 - main
8- pull_request :
9- branches :
10- - main
118
129jobs :
1310 deploy :
4744 apiToken : ${{ secrets.PAGES_API_TOKEN }}
4845 accountId : ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
4946 command : deploy
50- gitHubToken : ${{ secrets.GITHUB_TOKEN }}
51-
52- - name : Find Comment
53- if : github.event_name == 'pull_request'
54- uses : peter-evans/find-comment@v3
55- id : fc
56- with :
57- issue-number : ${{ github.event.pull_request.number }}
58- comment-author : ' github-actions[bot]'
59- body-includes : Cloudflare Pages
60-
61- - name : Update PR with Preview URL
62- if : success() && github.event_name == 'pull_request'
63- uses : peter-evans/create-or-update-comment@v4
64- with :
65- comment-id : ${{ steps.fc.outputs.comment-id }}
66- issue-number : ${{ github.event.pull_request.number }}
67- token : ${{ secrets.GITHUB_TOKEN }}
68- body : |
69- ⚡️ **Cloudflare Pages Preview**
70- Preview URL: ${{ steps.deploy.outputs.url }}
71- edit-mode : " replace"
72-
73- - name : Update PR with Failure
74- if : failure() && github.event_name == 'pull_request'
75- uses : peter-evans/create-or-update-comment@v4
76- with :
77- comment-id : ${{ steps.fc.outputs.comment-id }}
78- issue-number : ${{ github.event.pull_request.number }}
79- token : ${{ secrets.GITHUB_TOKEN }}
80- body : |
81- 😢 **Cloudflare Pages - Deployment failed**
82- Please check the workflow logs for details.
83- edit-mode : " replace"
47+ gitHubToken : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments