Skip to content

ci: fix GoReleaser failing to find tag on commit#88

Merged
arran4 merged 1 commit intomasterfrom
fix-goreleaser-tag-error-1823338727607866115
Mar 15, 2026
Merged

ci: fix GoReleaser failing to find tag on commit#88
arran4 merged 1 commit intomasterfrom
fix-goreleaser-tag-error-1823338727607866115

Conversation

@google-labs-jules
Copy link

Fixes GoReleaser validation failing during manual workflow_dispatch runs because the dynamically generated semantic version tag does not exist locally.

  • Updates the prepare-release-tag job to reliably run on both push events and workflow_dispatch events.
  • Centralizes the release logic by relying on needs.route.outputs.run_release == 'true'.
  • Adds a preliminary step before goreleaser/goreleaser-action@v6 to run git tag "<release_tag>" || true on the local runner.

PR created automatically by Jules for task 1823338727607866115 started by @arran4

GoReleaser requires that the provided release tag physically exists on the checked-out commit. For simulated `workflow_dispatch` releases, the release tag is calculated dynamically but never attached to the local git checkout.

This commit updates `.github/workflows/ci.yml` to explicitly create the tag locally (`git tag <tag> || true`) before invoking GoReleaser. It also simplifies the conditional logic in the `prepare-release-tag` and `goreleaser` jobs by relying on `needs.route.outputs.run_release == 'true'`, making the behavior consistent across standard tag pushes and manual workflow runs.
@google-labs-jules
Copy link
Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@arran4 arran4 merged commit 4ad6365 into master Mar 15, 2026
9 checks passed
@arran4 arran4 deleted the fix-goreleaser-tag-error-1823338727607866115 branch March 15, 2026 04:39
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