Commit ce8ce7a
ci: allow dependabot PRs to skip deployments to cloudflare (#1235)
* ci: allow dependabot PRs to deploy via pull_request_target
GitHub restricts secrets for pull_request events triggered by
dependabot[bot]. Switch dependabot PRs to pull_request_target,
which runs in the base branch context and has access to secrets.
- Add pull_request_target trigger
- Route dependabot PRs through pull_request_target only
- Route all other PRs through pull_request only (no double runs)
- Checkout PR head SHA for pull_request_target events
* Update .github/workflows/deploy.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* bypass cloudflare
* Simplify deploy job condition in workflow file
* Fix conditional syntax in deploy workflow steps
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 5226348 commit ce8ce7a
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| 68 | + | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
| |||
0 commit comments