From 822725effcf9b64d406c962bf2e638dce264cc95 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 17 Jan 2023 09:06:38 +0100 Subject: [PATCH] GHA: Cancel the currently running jobs on force-pushing a pull-request --- .github/workflows/build-install.yaml | 4 ++++ .github/workflows/codeql.yml | 4 ++++ .github/workflows/linters.yaml | 4 ++++ .github/workflows/tests.yaml | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/.github/workflows/build-install.yaml b/.github/workflows/build-install.yaml index 411b0b84..59b2f7b9 100644 --- a/.github/workflows/build-install.yaml +++ b/.github/workflows/build-install.yaml @@ -10,6 +10,10 @@ on: - 'README.md' - 'doc/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: rpmbuild: name: 'rpmbuild test' diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 9b1e1e4e..aa77a0c3 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -8,6 +8,10 @@ on: schedule: - cron: "13 12 * * 6" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index 0ecaa75d..1f677c0b 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -7,6 +7,10 @@ on: - '.github/**' - '**.py' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: mypy: runs-on: ubuntu-latest diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 04bf1641..44a98b77 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -9,6 +9,10 @@ on: - 'behave/**' - 'tests/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: unit: name: "unit"