ncipollo / release-action

An action which manages a github release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updating a release updates artifacts, but keeps the `Source code` assets

ttytm opened this issue · comments

Describe the bug
Updating a release via a github action, updates artifacts, but keeps the Source code assets.

To Reproduce
Make a release that updates an existent tag.

Expected behavior
Source code assets are updated when the release is updated.

It might be for the reason that the initial commit stays the same. I tried adding a commit value to get the commit updated, but it stays the same.

Screenshots

Screenshot_20230912_022627

Run ncipollo/release-action@v1
  with:
    artifacts: webui-linux-clang-debug-x64.tar.gz
    allowUpdates: true
    prerelease: true
    commit: 2f1f852959f15700d1134fe48c4d62e0b1d6c97d
    tag: nightly
    body: 'Generated on <samp>2023-09-12 00:20:07 UTC</samp> from commit 2f1f852959f15700d1134fe48c4d62e0b1d6c97d.'
    name: WebUI Development Build
    generateReleaseNotes: false
    makeLatest: legacy
    omitBody: false
    omitBodyDuringUpdate: false
    omitDraftDuringUpdate: false
    omitName: false
    omitNameDuringUpdate: false
    omitPrereleaseDuringUpdate: false
    removeArtifacts: false
    replacesArtifacts: true
    skipIfReleaseExists: false
    token: ***
    updateOnlyUnreleased: false

Additional Context

A possible solution could be to push / updated commits for the specified tag ("nightly" in the example above and below).

I'd like to achieve the same release style for nightly releases as kovid goyal does for kitty. An updating nighlty release that doesn't create announcement noice.

PS: Thanks for the work on that action!

That's out of scope for this action. If you want to update the tag (assuming that re-triggers source upload), you can do that as a step prior to running this action.

Okay I'm already on it. It indeed works. Thanks for the swift response.