is it possible to update existing release "commit"? #270
Answered
by
ncipollo
ReenigneArcher
asked this question in
Q&A
-
As the title states, is it possible to update an existing release commit hash? Additionally, the time it was created? Time for assets is updated when they are replaced, so that is great! I am passing the commit manually, which matches the latest commit in the branch. - name: Create/Update GitHub Release
if: ${{ needs.setup_release.outputs.create_release == 'true' }}
uses: ncipollo/release-action@v1
with:
name: ${{ needs.setup_release.outputs.release_name }}
tag: ${{ needs.setup_release.outputs.release_tag }}
commit: ${{ needs.setup_release.outputs.release_commit }}
artifacts: "*artifacts/*"
token: ${{ secrets.GH_BOT_TOKEN }}
allowUpdates: true
body: ${{ needs.setup_release.outputs.release_body }}
discussionCategory: announcements
prerelease: ${{ needs.setup_release.outputs.pre_release }} |
Beta Was this translation helpful? Give feedback.
Answered by
ncipollo
Oct 29, 2022
Replies: 1 comment 3 replies
-
It is not possible to update the the commit hash of an existing tag via the action (or via the release endpoints GitHub provides). I would just rely upon normal git tag commands (you can add a step in your workflow which uses a bash command to update and push your tag). |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ReenigneArcher
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is not possible to update the the commit hash of an existing tag via the action (or via the release endpoints GitHub provides). I would just rely upon normal git tag commands (you can add a step in your workflow which uses a bash command to update and push your tag).