-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PRE_RELEASE/UNRELEASED always creates a new DRAFT release #122
Comments
Hello @tajobe, Please add a screenshot of the current release, then execute the CI flow and provide two more screenshots: the new release created and the previous release (which became a draft at this stage). In addition to that, we will also need an execution log. |
@anton-yurchenko Unfortunately I cannot share much about the project, but the reason it doesn't find the previous release is because it was created as a DRAFT, even though DRAFT is I will try to reproduce on an open/public repository. |
@anton-yurchenko I've reproduced this here: https://github.com/tajobe/git-release-issue-122/releases ...The first workflow run with a clean slate (no tag, no releases) worked well, creating a Pre-Release release as desired, but the second run converted the existing release to a Draft. The run after that created a second Draft. None of these have been touched manually, and were just created with the git-release action, though I did have a few prior runs that I cleaned up to have a fresh slate for reproduction (deleted the tag, all releases, and actions runs).
|
Understood, thank you. |
I was able to identify a root cause for this issue; it is a race condition. The API requires some time to clean up the previous release, so adding a slight delay between the Delete and Create commands resolves this issue. This fix is shipped along with other upgrades in the v6.0.0 Thank you for raising this issue |
Description
When attempting to always release a latest snapshot for each push to main, DRAFT releases are continuously created instead of a single prerelease being updated/replaced.
Tag
5.0.2
(using dockerv5
)Workflow
This is the workflow I use to create a pre-release for
main
branch updates or a "true" release on semantic version tag.Changelog
I can't do that, but I don't think it's relevant here, and the releases are appropriately getting the changelog entries.
Log
Screenshots
Unfortunately I just cleaned up all the draft releases (a couple dozen of them), but I will try to add a screenshot when more merges to main happen. Ultimately it's creating draft releases when I don't think it should, and thus cannot find the previous prerelease to update for latest.
The text was updated successfully, but these errors were encountered: