Commit ac676ca
Ritchie
fix(ci): disable release draft update on PR events to prevent invalid target_commitish error
Release Drafter was failing on all PR events with:
Error: Validation Failed - field 'target_commitish' is invalid
This happens because on PR events the target_commitish is set to
refs/pull/*/merge which is not a valid target for the GitHub Releases
API. The fix adds when the event is a
pull_request, so the action still runs autolabeling on PRs but only
updates the draft release on push to main.1 parent 684ee68 commit ac676ca
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
0 commit comments