From 06529df2c01d4ab858197448ba423b83b0a8a2b1 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Tue, 1 Oct 2024 14:13:04 +0200 Subject: [PATCH] ci: add `concurrency` option to skip in progress Instead of running outdated CI jobs, skip them automatically. Signed-off-by: Paul Spooren --- .github/workflows/nix.yaml | 5 +++++ .github/workflows/qc.yaml | 4 ++++ .github/workflows/regressions.yml | 4 ++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/nix.yaml b/.github/workflows/nix.yaml index d212f8e..c6cc9fb 100644 --- a/.github/workflows/nix.yaml +++ b/.github/workflows/nix.yaml @@ -6,6 +6,11 @@ on: push: branches: - main + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: i686-linux---default: name: Build i686-linux.default diff --git a/.github/workflows/qc.yaml b/.github/workflows/qc.yaml index 416132c..e0bcc49 100644 --- a/.github/workflows/qc.yaml +++ b/.github/workflows/qc.yaml @@ -4,6 +4,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: checks: write contents: read diff --git a/.github/workflows/regressions.yml b/.github/workflows/regressions.yml index 2778da4..63c2758 100644 --- a/.github/workflows/regressions.yml +++ b/.github/workflows/regressions.yml @@ -4,6 +4,10 @@ on: push: branches: [main] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + permissions: checks: write contents: read