From dbe01cb0a76a20883690b89cd39a02f64beb5f05 Mon Sep 17 00:00:00 2001 From: Mark Piper Date: Wed, 14 Aug 2024 13:38:14 -0600 Subject: [PATCH] Cancel in-progress builds on a new push --- .github/workflows/docs.yml | 4 ++++ .github/workflows/lint.yml | 4 ++++ .github/workflows/test.yml | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index dc8d514..1d54525 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,6 +2,10 @@ name: Documentation on: [push, pull_request] +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: build: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2ca4850..1529c54 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,6 +2,10 @@ name: Lint on: [push, pull_request] +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: lint: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0ae07fe..c957497 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,12 @@ name: Test on: [push, pull_request] +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: + test: if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name !=