From 7fe4fe3d202f16a0676ded5cdf927c66422e3a17 Mon Sep 17 00:00:00 2001 From: nrslib <38722970+nrslib@users.noreply.github.com> Date: Wed, 4 Mar 2026 00:33:27 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20PR=20=E3=81=A8=20push=20=E3=81=AE?= =?UTF-8?q?=E9=87=8D=E8=A4=87=E5=AE=9F=E8=A1=8C=E3=82=92=20concurrency=20?= =?UTF-8?q?=E3=82=B0=E3=83=AB=E3=83=BC=E3=83=97=E3=81=A7=E6=8A=91=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 同一ブランチへの push と pull_request イベントが同時に発火した際に 後から来た方が先のジョブをキャンセルするよう concurrency を設定する。 --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d695786..4e78c55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: branches: [main, "takt/**"] workflow_dispatch: +concurrency: + group: ci-${{ github.event_name == 'pull_request' && github.head_ref || github.ref_name }} + cancel-in-progress: true + jobs: lint: runs-on: ubuntu-latest