Commit d187a70
Ritchie
fix(ci): skip release draft update on pull_request events
The release-drafter action fails with 'Validation Failed: target_commitish'
when triggered by pull_request events because it tries to set the PR merge
ref (refs/pull/NNN/merge) as the release target_commitish, which GitHub
rejects.
Add condition so the draft-update step
only runs on push to main. The pull_request trigger is kept in the
block so the autolabeler still fires for PRs (it runs in a separate step
that is unaffected by this condition).1 parent 7b891bf commit d187a70
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
0 commit comments