From b9a6aa90371c916e3c3bfe5b8005e441f2075df3 Mon Sep 17 00:00:00 2001 From: Leonardo Schwarz Date: Fri, 8 Nov 2024 10:13:55 +0100 Subject: [PATCH] cancel redundant runs --- .github/workflows/pr-checks.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 0e2ff54..4af739f 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -5,6 +5,9 @@ on: pull_request: branches: [main, dev] workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: unit_tests: name: Unit Tests