question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after update release, commit id and release time not change

See original GitHub issue

Describe the bug after update release, artifacts, body can be changed, but commit id and github-actions released time not change.

To Reproduce

      - uses: ncipollo/release-action@v1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          tag: "test"
          commit: master
          allowUpdates: true
          replacesArtifacts: true
          removeArtifacts: true
          artifacts: "test.zip"
	  body: |
            test

Expected behavior update commit id and release time

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
fcyingcommented, Oct 14, 2021

use a workaround to update commit id and time, delete it before release-action by use dev-drprasad/delete-tag-and-release

0reactions
ncipollocommented, Oct 14, 2021

Hi!

Unfortunately the described behavior is outside the scope of this action. This action primarily focuses on the management of the release, not the tag associated with the release. Github won’t use the commit hash if the tag associated with the release already exists: https://docs.github.com/en/rest/reference/repos#update-a-release

I think your best bet would be to have a separate action in your work flow which updates the tag prior to the release action running. Something like git checkout <branch>;git tag -f <tag>;git push -f <tag>.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gerrit error when Change-Id in commit messages are missing
You have to change the messages of every commit that you are pushing to include the change id ( using git filter-branch )...
Read more >
Change-Ids - Gerrit Code Review
Change -Ids are created at commit time on the client side. A standard 'commit-msg' hook is provided by Gerrit, and can be installed...
Read more >
Git Basics: Adding more changes to your last commit - Medium
With this post you'll learn how to modify your last commit, adding (or removing) some changes. You can also follow this tutorial to...
Read more >
Chapter 21 Git Version Control - Bioconductor Packages
A minimal workflow is to checkout, update, commit, and push changes to your ... If you do not use the command to get...
Read more >
git-tag Documentation - Git
git tag [-n[<num>]] -l [--contains <commit>] [--no-contains <commit>] ... a release tag from you, you cannot just change the tag for them by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found