Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.6.0 リリース後の v2 タグ更新に失敗した #97

Closed
masutaka opened this issue Feb 21, 2025 · 4 comments
Closed

v2.6.0 リリース後の v2 タグ更新に失敗した #97

masutaka opened this issue Feb 21, 2025 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@masutaka
Copy link
Member

#91 のマージでトリガーされた、v2.6.0 リリース後の v2 タグ更新に失敗した。

🔗 https://github.com/route06/actions/actions/runs/13448637487/job/37579026796

bump_major_tag failure

Release workflow の bump_major_tag ジョブが失敗した。

https://github.com/route06/actions/blob/v2.6.0/.github/workflows/my_release.yml#L35-L57

@masutaka masutaka added the bug Something isn't working label Feb 21, 2025
@masutaka masutaka self-assigned this Feb 21, 2025
@masutaka
Copy link
Member Author

v2.6.0 のリリースは成功しているので、v2 タグは一旦手動で更新した。

$ git --version
git version 2.48.1

$ git pull
From ssh://github.com/route06/actions
 * [new tag]         v2.6.0     -> v2.6.0
Already up to date.

$ git tag -f v2 v2.6.0
Updated tag 'v2' (was 55b3a3d)

$ git push origin v2 --force
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To ssh://github.com/route06/actions.git
 + 55b3a3d...1557156 v2 -> v2 (forced update)

@masutaka
Copy link
Member Author

Git のバージョンはローカルも GitHub Actions も 2.48.1 だった。

fatal: Failed to resolve 'v2.6.0' as a valid ref. というエラーは、v2.6.0 というタグが git 実行環境にないのに git tag -f v2 v2.6.0 を実行すると発生する。

しかし、actions/checkout で fetch-tags: true は設定している。
https://github.com/route06/actions/blob/v2.6.0/.github/workflows/my_release.yml#L45-L47

@masutaka
Copy link
Member Author

似たような issue がいくつかある。

fetch-depth: 1 を追加すると回避できる情報あり。次回のリリースも失敗したら、検討してみよう。

参考までに、前回リリースに成功した v2.5.0 の日付は 2024/10/02 だった。

@masutaka
Copy link
Member Author

#97 (comment) に書いたとおり、今回は v2 タグの手動更新で対応した。次回のリリースでも発生したら検討する。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant