File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ permissions:
88 contents : read
99
1010env :
11- CLOUDFLARE_PAGES_PROJECT_NAME : typelevel-website
11+ CLOUDFLARE_PAGES_PROJECT_NAME : typelevel-website-test
1212 BRANCH_NAME : pr-${{ github.event.pull_request.number }}
1313
1414jobs :
Original file line number Diff line number Diff line change 88permissions :
99 actions : read
1010 contents : read
11+ deployments : write
1112 # Write sticky comment
1213 pull-requests : write
1314
1415env :
15- CLOUDFLARE_PAGES_PROJECT_NAME : typelevel-website
16+ CLOUDFLARE_PAGES_PROJECT_NAME : typelevel-website-test
1617
1718jobs :
1819 deploy :
4344 echo "branch=pr-$(cat pr_number.txt)" >> "$GITHUB_OUTPUT"
4445
4546 - name : Deploy
47+ env :
48+ # this action links the GitHub deployment to a PR using
49+ # GITHUB_HEAD_REF, which isn't set on workflow_run events.
50+ # We set it manually to the PR's head branch so the deployment
51+ # shows up on the pull request.
52+ GITHUB_HEAD_REF : ${{ github.event.workflow_run.head_branch }}
4653 uses : cloudflare/wrangler-action@v4
4754 id : deploy
4855 with :
You can’t perform that action at this time.
0 commit comments