Commit 217d12b
committed
Fix gh-pages deploy race condition
Replace pull_request_target with pull_request to prevent
duplicate workflow runs when merging PRs to master.
Previously, merging a PR fired both 'push' and
'pull_request_target' simultaneously, causing two runs to
race for the gh-pages force-push. The loser failed with a
"cannot lock ref" error. With pull_request, only the push
event deploys on merge, while PRs still get build-tested.1 parent bdc67a3 commit 217d12b
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
10 | 16 | | |
11 | 17 | | |
12 | 18 | | |
| |||
0 commit comments