diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-11-10 16:45:12 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2021-11-10 17:15:35 +0100 |
commit | 3884837610168e6fb69fc2d5709f6c017a30beb9 (patch) | |
tree | a4886233a544ac733c0930b8fd8ae265afbd4bd7 /.github | |
parent | 46573ee1319ee8ae5b292a0a737740eca1a68184 (diff) | |
download | systemd-3884837610168e6fb69fc2d5709f6c017a30beb9.tar.gz |
ci: cancel previous jobs on ref update
Let's save the environment (and reduce the number of jobs in GH Actions
queues) by cancelling old jobs on a ref update (force push).
See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build_test.yml | 3 | ||||
-rw-r--r-- | .github/workflows/cifuzz.yml | 3 | ||||
-rw-r--r-- | .github/workflows/linter.yml | 3 | ||||
-rw-r--r-- | .github/workflows/mkosi.yml | 3 | ||||
-rw-r--r-- | .github/workflows/unit_tests.yml | 3 |
5 files changed, 15 insertions, 0 deletions
diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml index 763a9b8025..ae03f591b3 100644 --- a/.github/workflows/build_test.yml +++ b/.github/workflows/build_test.yml @@ -15,6 +15,9 @@ on: jobs: build: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ matrix.env.COMPILER }}-${{ matrix.env.COMPILER_VERSION }}-${{ github.ref }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/cifuzz.yml b/.github/workflows/cifuzz.yml index 18476cb641..2053c11a0f 100644 --- a/.github/workflows/cifuzz.yml +++ b/.github/workflows/cifuzz.yml @@ -20,6 +20,9 @@ jobs: Fuzzing: runs-on: ubuntu-latest if: github.repository == 'systemd/systemd' + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 1136c0523b..2c3c58ad58 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -13,6 +13,9 @@ jobs: build: name: Lint Code Base runs-on: ubuntu-latest + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true steps: - name: Repo checkout diff --git a/.github/workflows/mkosi.yml b/.github/workflows/mkosi.yml index 9ae40e316f..11cb3f63b5 100644 --- a/.github/workflows/mkosi.yml +++ b/.github/workflows/mkosi.yml @@ -15,6 +15,9 @@ on: jobs: ci: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ matrix.distro }}-${{ github.ref }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index d6c3fafabd..2bb8400fdf 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -11,6 +11,9 @@ on: jobs: build: runs-on: ubuntu-20.04 + concurrency: + group: ${{ github.workflow }}-${{ matrix.run_phase }}-${{ github.ref }} + cancel-in-progress: true strategy: fail-fast: false matrix: |