Commit 4ec4c7d
fix(ci): skip release-draft update on pull_request events
Release Drafter fails on every PR with "Validation Failed: target_commitish"
because it tries to use refs/pull/NNN/merge as the release target. Gate the
update_release_draft job with `if: github.event_name == 'push'` so it only runs
on pushes to the default branch, while keeping the pull_request trigger so the
autolabeler can be enabled later.
Cherry-picks only the workflow fix from #161 (which was based on a stale main
and carried unrelated changes).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 11a1351 commit 4ec4c7d
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