Skip to content

Commit e7a45b1

Browse files
authored
Update deploy command to use pull request number
1 parent 7f154cc commit e7a45b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
with:
6868
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
6969
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
70-
command: pages deploy dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch=${{ env.COMMIT_SHORT_SHA }} --commit-dirty=true
70+
command: pages deploy dist --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }} --branch=PR${{ github.event.pull_request.number }} --commit-dirty=true
7171

7272
- name: Add deployment comment
7373
uses: thollander/actions-comment-pull-request@v3

0 commit comments

Comments
 (0)