From a6e4a0078b1ae0d272963b8ff4382a50b323f56a Mon Sep 17 00:00:00 2001 From: Andrei Dziahel Date: Thu, 7 Dec 2023 20:05:08 +0100 Subject: [PATCH] ci: test only head of branch --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bf9ad30eb..7538259d5 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,6 +11,11 @@ on: branches: - main - rel-* +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + + # Terminate all previous runs of the same workflow and branch/tag, except for main and release branches/tags + cancel-in-progress: "${{ !(github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/rel-')) }}" jobs: Prepopulate-Nix-Cache-Linux: