Skip to content

Commit 3fde373

Browse files
authored
Update deploy-preview.yml
1 parent 340f2b5 commit 3fde373

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ jobs:
6161
with:
6262
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6363
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
64-
command: pages deploy dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch ${{ github.head_ref }} --commit-dirty=true
64+
command: pages deploy dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch ${{ github.event.pull_request.head.sha }} --commit-dirty=true
6565

6666
- name: Add deployment comment
6767
uses: thollander/actions-comment-pull-request@v3
6868
with:
6969
message: |
70-
Preview URL: ${{ steps.deploy.outputs.deployment-url }}
70+
Preview URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
7171
reactions: eyes, rocket
7272
comment-tag: 'Preview URL'
7373
mode: recreate

0 commit comments

Comments
 (0)