File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -55,13 +55,19 @@ jobs:
55
55
name : dist-files
56
56
path : dist
57
57
58
+ - name : Set short git commit SHA
59
+ id : vars
60
+ run : |
61
+ calculatedSha=$(echo ${{ github.event.pull_request.head.sha }} | head -c 8)
62
+ echo "COMMIT_SHORT_SHA=$calculatedSha" >> $GITHUB_ENV
63
+
58
64
- name : Deploy to Cloudflare
59
65
id : deploy
60
66
uses : cloudflare/wrangler-action@v3
61
67
with :
62
68
apiToken : ${{ secrets.CLOUDFLARE_API_TOKEN }}
63
69
accountId : ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
64
- command : pages deploy dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch ${{ github.event.pull_request.head.sha }} --commit-dirty=true
70
+ command : pages deploy dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch= ${{ env.COMMIT_SHORT_SHA }} --commit-dirty=true
65
71
66
72
- name : Add deployment comment
67
73
uses : thollander/actions-comment-pull-request@v3
You can’t perform that action at this time.
0 commit comments