ci: fix GoReleaser failing to find tag on commit#88
Conversation
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.
|
👋 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 New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Fixes GoReleaser validation failing during manual
workflow_dispatchruns because the dynamically generated semantic version tag does not exist locally.prepare-release-tagjob to reliably run on both push events andworkflow_dispatchevents.needs.route.outputs.run_release == 'true'.goreleaser/goreleaser-action@v6to rungit tag "<release_tag>" || trueon the local runner.PR created automatically by Jules for task 1823338727607866115 started by @arran4