From 118bc1d0f154663321f9dd5f27318d5e1dac5f09 Mon Sep 17 00:00:00 2001 From: Roman Ivanov Date: Wed, 7 Oct 2026 15:39:47 -0700 Subject: [PATCH] ci: finish in-progress checks on main A later push to main was cancelling the previous commit's run. Other refs still cancel the older run. Signed-off-by: Roman Ivanov --- .github/workflows/ci.yml | 3 ++- .github/workflows/codeql.yml | 3 ++- .github/workflows/cutile-rs.yml | 3 ++- .github/workflows/docs.yml | 3 ++- .github/workflows/examples-compile.yml | 3 ++- .github/workflows/naming-guard.yml | 3 ++- .github/workflows/status-guard.yml | 3 ++- 7 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 60f0f88fad..a7862db9ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,9 +28,10 @@ on: - 'Cargo.lock' - '.github/workflows/**' +# main runs finish; any other ref cancels the older run of this workflow. concurrency: group: ci-gate-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} # Every other workflow in the repo pins this rather than inheriting whatever the # repository default happens to be. This one is a pure caller today, so the four diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b36896e9c3..3c52eb7f98 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -9,9 +9,10 @@ on: schedule: - cron: "44 3 * * 6" +# main runs finish; any other ref cancels the older run of this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} jobs: analyze: diff --git a/.github/workflows/cutile-rs.yml b/.github/workflows/cutile-rs.yml index 2c3735f6d7..21f21afd46 100644 --- a/.github/workflows/cutile-rs.yml +++ b/.github/workflows/cutile-rs.yml @@ -25,9 +25,10 @@ on: - "pull-request/[0-9]+" workflow_dispatch: +# main runs finish; any other ref cancels the older run of this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} permissions: contents: read diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5fd315f684..98d6da40a9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -26,9 +26,10 @@ on: - 'Cargo.lock' - '.github/workflows/**' +# main runs finish; any other ref cancels the older run of this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} permissions: contents: read diff --git a/.github/workflows/examples-compile.yml b/.github/workflows/examples-compile.yml index 86db9f489b..9efa9bd739 100644 --- a/.github/workflows/examples-compile.yml +++ b/.github/workflows/examples-compile.yml @@ -26,9 +26,10 @@ on: - 'Cargo.lock' - '.github/workflows/**' +# main runs finish; any other ref cancels the older run of this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} permissions: contents: read diff --git a/.github/workflows/naming-guard.yml b/.github/workflows/naming-guard.yml index 5a5a09b6fd..429b6f26c7 100644 --- a/.github/workflows/naming-guard.yml +++ b/.github/workflows/naming-guard.yml @@ -7,9 +7,10 @@ on: pull_request: branches: [main] +# main runs finish; any other ref cancels the older run of this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} permissions: contents: read diff --git a/.github/workflows/status-guard.yml b/.github/workflows/status-guard.yml index b56320c346..a4c7a927d2 100644 --- a/.github/workflows/status-guard.yml +++ b/.github/workflows/status-guard.yml @@ -7,9 +7,10 @@ on: pull_request: branches: [main] +# main runs finish; any other ref cancels the older run of this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref_name }} - cancel-in-progress: true + cancel-in-progress: ${{ github.ref_name != 'main' }} permissions: contents: read