You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a matrix job, a new release is created for each time a matrix job uploads an asset, instead of including asset in the existing release with the same tag, name, etc.
If I remove the draft: true line, it adds all assets to the same release as expected.
@svenstaro It's because GitHub's REST API doesn't return the release when searching by tag if it's a draft, you need to first create the release if not found then retrieve its ID to finally be able to update the intended release by requesting the release not by tag but by its id.
Otherwise, you always create a new release in draft mode since you never find one.
@svenstaro It's because GitHub's REST API doesn't return the release when searching by tag if it's a draft, you need to first create the release if not found then retrieve its ID to finally be able to update the intended release by requesting the release not by tag but by its id.
Otherwise, you always create a new release in draft mode since you never find one.
Edit: I can create a PR if you want.
Please go ahead and create a PR, much appreciated 👍
When using a matrix job, a new release is created for each time a matrix job uploads an asset, instead of including asset in the existing release with the same tag, name, etc.
If I remove the
draft: true
line, it adds all assets to the same release as expected.With some testing, I believe
draft: true
is the only field which causes this behaviour.Without using

draft: true
:Using

draft: true
: (ignore differences in title, tag)I could not find any explanation for this or existing issues, so I can't imagine this is intended behaviour.
The text was updated successfully, but these errors were encountered: