Skip to content

ci(release): fix actions/checkout fetch-tags conflict on push-tag#11

Merged
Sunrisepeak merged 1 commit intomainfrom
ci/release-fetch-fix
May 8, 2026
Merged

ci(release): fix actions/checkout fetch-tags conflict on push-tag#11
Sunrisepeak merged 1 commit intomainfrom
ci/release-fetch-fix

Conversation

@Sunrisepeak
Copy link
Copy Markdown
Member

Summary

The v0.0.2 push-tag triggered run 25579775799 failed at the checkout step:

Cannot fetch both ef6dffd0a... and refs/tags/v0.0.2 to refs/tags/v0.0.2

Known issue with actions/checkout@v4 when both the ref'd tag and
fetch-tags: true are set on the same checkout — it ends up trying to
fetch the same ref twice. Switching to fetch-depth: 0 gives the
resolve-tag step the full history it needs without the conflict.

Test plan

After merge:

  • gh workflow run release.yml -f tag=v0.0.2 to rebuild v0.0.2 with
    the fixed checkout step.
  • Verify the release artefacts upload to the v0.0.2 GitHub Release.

The push-tag trigger that fired for v0.0.2 failed with

  Cannot fetch both ef6dffd... and refs/tags/v0.0.2 to refs/tags/v0.0.2

— a known interaction in actions/checkout@v4 where `fetch-tags: true`
combined with a tag ref tries to fetch the same ref twice. Switching to
`fetch-depth: 0` gives the resolve-tag step the full history it needs
without the duplicate-fetch conflict.

(The release.yml flow itself is unchanged; this only fixes the runner
side.)
@Sunrisepeak Sunrisepeak merged commit 2a603e0 into main May 8, 2026
1 check passed
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