ci: PR と push の重複実行を concurrency グループで抑制

同一ブランチへの push と pull_request イベントが同時に発火した際に
後から来た方が先のジョブをキャンセルするよう concurrency を設定する。
This commit is contained in:
nrslib 2026-03-04 00:33:27 +09:00
parent 1b1f758c56
commit 7fe4fe3d20

View File

@ -8,6 +8,10 @@ on:
branches: [main, "takt/**"] branches: [main, "takt/**"]
workflow_dispatch: workflow_dispatch:
concurrency:
group: ci-${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest