Skip to content
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

feat(gorelease): Fix flaky aws-nuke-v2 releases #10

Draft
wants to merge 1 commit into
base: oreilly-main
Choose a base branch
from

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
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.

1 participant