Commit bf22863
Ritchie
fix(ci): remove pull_request trigger from Release Drafter workflow
The Release Drafter action was triggered on pull_request events, but when
updating the draft release it used refs/pull/N/merge as target_commitish.
GitHub's API rejects this ephemeral ref, causing:
'Validation Failed: {"resource":"Release","code":"invalid","field":"target_commitish"}'
The autolabeler feature is not configured in .github/release-drafter.yml,
so the pull_request trigger was not providing any value.
Fix: Only run on push to main, which produces a valid target_commitish.1 parent 684ee68 commit bf22863
1 file changed
Lines changed: 5 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 28 | + | |
35 | 29 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 30 | | |
41 | 31 | | |
0 commit comments