Skip to content

fix(ci): CIワークフローの二重実行を修正 - #2

Merged
tkgstrator merged 1 commit into
masterfrom
fix/ci-duplicate-trigger
Sep 17, 2026
Merged

tkgstrator merged 1 commit into
masterfrom
fix/ci-duplicate-trigger

Conversation

@tkgstrator

Copy link
Copy Markdown
Contributor

問題

.github/workflows/integration.yamlon:push(branches-ignore: main, master) と pull_request(ブランチ制限なし) の両方を含んでいました。そのため、PRブランチへpushすると push イベントと pull_request(synchronize) イベントが同時に発火し、commitlint/ruff/mypy/pytest の各ジョブが二重に実行されていました。

修正内容

  • integration.yaml のトリガーを pull_request のみに一本化し、push トリガーを削除しました。
  • 元の push トリガーは main/master を除外していたため、保護ブランチへの直push検証を目的としたものではなく、単純な重複トリガーと判断しました。
  • deployment.yamlpull_request(closed) と workflow_dispatch のみで構成されており、同種の重複は無かったため変更していません。
  • ジョブ内の処理内容やrunners-onは変更していません。

補足

  • commitlint ジョブに残っている if: github.event_name == 'push' の分岐は、push トリガーが無くなったことで実質到達しなくなりますが、ジョブ内容には手を入れない方針のため今回は変更していません。必要であれば別途整理をご検討ください。

🤖 Generated with Claude Code

integration.yaml triggered on both push (branches-ignore: main/master)
and pull_request, so pushing to a PR branch fired the workflow twice
(push + pull_request synchronize), running commitlint/ruff/mypy/pytest
jobs redundantly. Consolidate to pull_request only, since main/master
were already excluded from the push trigger and no direct-push-to-
protected-branch check was in play.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tkgstrator
tkgstrator merged commit 67a0545 into master Sep 17, 2026
4 checks passed
@tkgstrator
tkgstrator deleted the fix/ci-duplicate-trigger branch September 17, 2026 20:19
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