Skip to content

Commit 8fcf486

Browse files
highemerlyclaude
andcommitted
fix(ci): use refs/tags/ prefix to avoid ambiguity between branch and tag names
CI_TAG がブランチ名とタグ名で同一になるため git push が ambiguous になる問題を修正。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1e3d615 commit 8fcf486

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/check-upstream.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ jobs:
150150
# CI ブランチをpush
151151
git push origin "$CI_TAG"
152152
153-
# actions-v4.5.9-YYYYMMDDHHMMSS タグを打つ
153+
# actions-v4.5.9-YYYYMMDDHHMMSS タグを打つ (refs/tags/ を明示してブランチ名と衝突回避)
154154
git tag "$CI_TAG"
155-
git push origin "$CI_TAG" --tags
155+
git push origin "refs/tags/$CI_TAG"
156156
157157
# handon-production を force update
158158
git push origin "HEAD:handon-production" --force

0 commit comments

Comments
 (0)