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/workflows/build_test.yml | |
parent | ci: fix indentation (diff) | |
download | systemd-3884837610168e6fb69fc2d5709f6c017a30beb9.tar.xz systemd-3884837610168e6fb69fc2d5709f6c017a30beb9.zip |
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/workflows/build_test.yml')
-rw-r--r-- | .github/workflows/build_test.yml | 3 |
1 files changed, 3 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: |