From 41cc2b3dbd78f12b35cb99afa91965aca53aa687 Mon Sep 17 00:00:00 2001 From: Mathias Preiner Date: Wed, 30 Mar 2022 17:50:04 -0700 Subject: [PATCH] ci: Do not cancel jobs on main branch. (#8471) This will prevent that jobs on the main branch get cancelled when new PRs are merged in before the previous ones finished on main. --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8232933b1..badbcd16c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,7 +69,7 @@ jobs: # cancel already running jobs for the same branch/pr/tag concurrency: group: build-${{ github.ref }}-${{ matrix.name }} - cancel-in-progress: true + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} steps: -- 2.30.2