feat(gorelease): Fix flaky aws-nuke-v2 releases #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While reviewing the failed release, I noticed that the release was being executed twice. One was triggered automatically when a new tag was pushed (GoReleaser 25) and the other was triggered manually (GoReleaser 26). I removed the tag trigger from the workflow so only published releases work.
GoReleaser 25 v3.48.2-orm succeeded: link
- Triggered via push
When you create a tag like v3.48.2-orm, GitHub pushes that tag.
This immediately triggers the workflow before the release is officially published.
GoReleaser runs and tries to create a release.
GoReleaser 26 v3.48.2-orm failed : link
- Triggered via release
When you later publish a release using GitHub’s UI (or an automated process), GitHub fires another event: "release published".
This again triggers the workflow.
GoReleaser sees the same tag and release name and tries to create it again, leading to a failure due to duplication.