From b1878c681842ac0169457adbdc6750e59ae7e35b Mon Sep 17 00:00:00 2001 From: Gereon Kremer Date: Fri, 1 Apr 2022 22:26:52 +0200 Subject: [PATCH] Change CI concurrency policy to not queue on main (#8530) Previously, we would only allow one job per branch/PR and only cancel old jobs on PRs. This PR changes this policy to allow multiple jobs at once on main. The way this is done basically follows https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value. --- .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 6173b741b..9ef262784 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,7 +68,7 @@ jobs: # cancel already running jobs for the same branch/pr/tag concurrency: - group: build-${{ github.ref }}-${{ matrix.name }} + group: build-${{ github.ref }}-${{ matrix.name }}-${{ github.ref != 'refs/heads/main' || github.run_id }} cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} steps: -- 2.30.2