Skip to content

fix: skip Manual Release for tags pushed by auto-tag - #279

Merged
sasagar merged 1 commit into
devfrom
fix/issue-278-release-double-run
Oct 13, 2026
Merged

sasagar merged 1 commit into
devfrom
fix/issue-278-release-double-run

Conversation

@sasagar

@sasagar sasagar commented Oct 13, 2026

Copy link
Copy Markdown
Member

Closes #278

変更内容

release.yml に guard ジョブを追加しました。タグの push で起動したとき、そのタグを auto-tag が作ったかどうかを判定し、auto-tag のタグならリリースを作らずにスキップします。

  • 判定の方法: GitHub API で annotated tag の tagger を確認し、github-actions[bot](auto-tag.yml が git config user.name で設定している名前)ならスキップします。
  • 手動の操作への影響: 手で push したタグ(tagger が個人名のもの)と workflow_dispatch での再リリースは、これまでどおり動きます。
  • create-release の条件: このジョブは always() で動くため、call-ci がスキップされても実行されてしまいます。そこで needs.guard.result == 'success' と skip != 'true' の両方を条件に加えました。guard ジョブ自体が失敗した場合もリリースは作られません。

確認したこと

判定のロジックを、実際のタグに対して手元で実行しました。

タグ tagger 判定
v2026.10.0 github-actions[bot] スキップ
v2026.7.0 github-actions[bot] スキップ
v2026.4.0 SASAGAWA Kiyoshi リリースを作成
v2026.4.1-beta.1 SASAGAWA Kiyoshi リリースを作成

実際のワークフロー上での動作は、次のリリースで確認することになります。

https://claude.ai/code/session_01Y29fBeRP344FME6de48wUv

auto-tag pushes tags with RELEASE_PAT, which also triggers release.yml.
Both workflows then created the same release and raced on the SBOM
upload. Add a guard job that skips push events whose annotated tag was
created by github-actions[bot]; hand-pushed tags and workflow_dispatch
are unaffected.

Claude-Session: https://claude.ai/code/session_01Y29fBeRP344FME6de48wUv
@coderabbitai

coderabbitai Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 34 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: Love-Rox/rox/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 33f03113-0c7b-4166-be48-c14b3c18ae51
📥 Commits

Reviewing files that changed from the base of the PR and between fdf0127 and 811d003.

📒 Files selected for processing: 1
  • .github/workflows/release.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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