From 75ea8ef1c1c5062d02ee0c26680dd1c22064b38a Mon Sep 17 00:00:00 2001 From: Stanislas Date: Sat, 13 Dec 2025 15:14:15 +0100 Subject: [PATCH] ci: only cancel in-progress jobs for pull requests (#1378) - Only cancel in-progress CI jobs for pull requests, not for master branch pushes - Ensures all master branch jobs run to completion while still saving CI resources on PRs --- .github/workflows/docker-test.yml | 2 +- .github/workflows/lint.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index f1e83ab..8908876 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -9,7 +9,7 @@ name: Docker Test concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 6a04a2f..88f318a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -8,7 +8,7 @@ name: Lint concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: contents: read