From 6944a6a18edd970102777d2f8c65542222204573 Mon Sep 17 00:00:00 2001 From: Bret Fisher Date: Sat, 25 Mar 2023 00:40:10 -0400 Subject: [PATCH] add concurrency limit to actions (#23) --- .github/workflows/call-local-docker-build.yaml | 5 +++++ .github/workflows/call-super-linter.yaml | 5 +++++ templates/call-docker-build.yaml | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/.github/workflows/call-local-docker-build.yaml b/.github/workflows/call-local-docker-build.yaml index f2f34d7..b8bb82b 100644 --- a/.github/workflows/call-local-docker-build.yaml +++ b/.github/workflows/call-local-docker-build.yaml @@ -16,6 +16,11 @@ on: - 'README.md' - '.github/linters/**' +# cancel any previously-started, yet still active runs of this workflow on the same branch +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: call-docker-build: diff --git a/.github/workflows/call-super-linter.yaml b/.github/workflows/call-super-linter.yaml index e67bb88..bd3a20a 100644 --- a/.github/workflows/call-super-linter.yaml +++ b/.github/workflows/call-super-linter.yaml @@ -9,6 +9,11 @@ on: pull_request: +# cancel any previously-started, yet still active runs of this workflow on the same branch +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: call-super-linter: diff --git a/templates/call-docker-build.yaml b/templates/call-docker-build.yaml index c5ab733..e042ec3 100644 --- a/templates/call-docker-build.yaml +++ b/templates/call-docker-build.yaml @@ -16,6 +16,11 @@ on: - 'README.md' - '.github/linters/**' +# cancel any previously-started, yet still active runs of this workflow on the same branch +concurrency: + group: ${{ github.ref }}-${{ github.workflow }} + cancel-in-progress: true + jobs: call-docker-build: