Skip to content

Uploading files to existing release resets its properties #108

Closed
@filips123

Description

@filips123

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions