File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - main
7+
78jobs :
89 deploy :
910 permissions :
2930 - name : Build Docs Website
3031 run : mkdocs build
3132
32- # - uses: actions/setup-node@v4
33- # with:
34- # node_version: 20
35- # - run: npm ci
36- # run: npm run build
3733 - name : Deploy to Cloudflare Pages
3834 uses : andykenward/github-actions-cloudflare-pages@v3.0.0
3935 id : pages
Original file line number Diff line number Diff line change 44# not workflow_run, so previews use wrangler directly (same pattern as Cloudflare docs).
55name : PR Preview Deploy
66on :
7- workflow_run :
8- workflows :
9- - PR Preview Validate
10- types :
11- - completed
7+ pull_request_target :
8+ branches :
9+ - main
1210
1311jobs :
1412 deploy :
15- # workflow_run has no github.event.pull_request; pull_requests[0].number matches
16- # github.event.pull_request.number from the PR Preview Validate run.
17- if : >-
18- github.event.workflow_run.conclusion == 'success' &&
19- github.event.workflow_run.event == 'pull_request' &&
20- github.event.workflow_run.pull_requests[0].number != null
2113 runs-on : ubuntu-latest
2214 timeout-minutes : 5
2315 environment : Cloudflare Pages
3123 - uses : actions/checkout@v4
3224 with :
3325 repository : ${{ github.event.workflow_run.head_repository.full_name || github.repository }}
34- ref : ${{ github.event.workflow_run.head_sha }}
26+ ref : ${{ github.event.pull_request.head.sha }}
3527 fetch-depth : 0
3628 - uses : actions/setup-python@v6
3729 with :
You can’t perform that action at this time.
0 commit comments