Skip to content

fix: Explicitly fetch tag object after checkout#41

Merged
turtton merged 1 commit into
mainfrom
fix/publish-fetch-tag-object
May 6, 2026
Merged

fix: Explicitly fetch tag object after checkout#41
turtton merged 1 commit into
mainfrom
fix/publish-fetch-tag-object

Conversation

@turtton

@turtton turtton commented May 6, 2026

Copy link
Copy Markdown
Owner

Summary

  • actions/checkout v5 は tag push トリガー時に annotated tag オブジェクトを fetch しない(fetch-tags: true でも同様)
  • checkout 後に git fetch origin tag $TAG_NAME --force で明示的にタグオブジェクトを取得するステップを追加
  • 不要になった fetch-tags: true を削除

再現

PR #40fetch-tags: true では解決しなかった:
https://github.com/turtton/ConnectedTank/actions/runs/25431902914

actions/checkout v5 does not fetch annotated tag objects on
tag-push triggers even with fetch-tags: true. Use explicit
git fetch origin tag to retrieve the tag object.
@turtton turtton merged commit 1c2a8b1 into main May 6, 2026
2 checks passed
@turtton turtton deleted the fix/publish-fetch-tag-object branch May 6, 2026 11:17
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