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
I have a workflow that runs on a new pushed tag that is created when I create a release from GitHub website. I want that workflow builds some things and then attaches the files to the existing release for that tag that I created.
This works and the files are uploaded correctly to the release without it being overwritten. However, this also resets release's name to tag and clears its pre-release status (and all other properties, excluding description). This is caused by https://github.com/softprops/action-gh-release/blob/master/src/github.ts#L182-L186 which sets all properties to data provided in workflow config.
I think the solution to this could be to only use data from workflow config when they are explicitly provided (or when a completely new release is created) and otherwise retain them from the existing release.
The text was updated successfully, but these errors were encountered:
I have a workflow that runs on a new pushed tag that is created when I create a release from GitHub website. I want that workflow builds some things and then attaches the files to the existing release for that tag that I created.
This works and the files are uploaded correctly to the release without it being overwritten. However, this also resets release's name to tag and clears its pre-release status (and all other properties, excluding description). This is caused by https://github.com/softprops/action-gh-release/blob/master/src/github.ts#L182-L186 which sets all properties to data provided in workflow config.
I think the solution to this could be to only use data from workflow config when they are explicitly provided (or when a completely new release is created) and otherwise retain them from the existing release.
The text was updated successfully, but these errors were encountered: