From c871a283670599c64656adc363e38a1ac723d6e0 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Tue, 16 Aug 2022 23:58:19 -0500 Subject: Cancel in-progress CI if a new commit workflow supplants it This is useful when repushing to a PR very quickly and when merging to dev very quickly. --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c490bc7..e234a17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,10 @@ on: [push, pull_request] permissions: contents: read +concurrency: + cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.head_ref }} + jobs: lz4-c-compilers: name: CC=${{ matrix.cc }}, ${{ matrix.os }} -- cgit v0.12