Commit dd1b0f4
authored
fix: handle pre-existing draft release in host job (#116)
The plan job calls `dist host --steps=create` which pre-creates the
GitHub release as a draft. When the host job later runs `gh release
create`, it fails with "a release with the same tag name already exists",
which blocks the custom-publish-homebrew job from running.
Fix by checking if the release already exists and using `gh release edit`
+ `gh release upload --clobber` instead of `gh release create` in that
case.
Co-authored-by: Eddie A Tejeda <669988+eddietejeda@users.noreply.github.com>1 parent f6c2782 commit dd1b0f4
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
280 | 287 | | |
281 | 288 | | |
282 | 289 | | |
| |||
0 commit comments