Skip to content

Conversation

corybekk
Copy link
Collaborator

@corybekk corybekk commented Mar 18, 2025

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

  • Workflow Trigger 1 (push: tags: "*")
    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

  • Workflow Trigger 2 (release: published)
    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.

@corybekk corybekk closed this Mar 18, 2025
@corybekk corybekk force-pushed the CL-1167-fix-releases branch from 997b461 to 83a1b4b Compare March 18, 2025 20:44
@corybekk corybekk reopened this Mar 18, 2025
@corybekk corybekk changed the title CL-1167 | Fix flaky aws-nuke-v2 releases feat(gorelease): Fix flaky aws-nuke-v2 releases Mar 18, 2025
@corybekk corybekk marked this pull request as ready for review March 26, 2025 23:07
Copy link

@gsoria gsoria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is kind of confusing to me that the links of your PR description points to the cloudformation stack fixes jobs which I retried manually. But I think you have a point that the action shouldn't been triggered by the merge commit. I think it is fine to try this! Thanks @corybekk !

@corybekk corybekk merged commit f6af28f into oreilly-main Mar 27, 2025
5 of 6 checks passed
Copy link
Member

@danarbaugh danarbaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great find, Cory! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants