From bc892059a14d5d6f89980f018f563e41cfbc6834 Mon Sep 17 00:00:00 2001 From: Trenton Holmes Date: Sun, 17 Apr 2022 15:25:19 -0700 Subject: [PATCH] Adds workflow level concurrency group with cancelling of in progress jobs to the CI --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb8af9876..0daf605c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -185,6 +185,9 @@ jobs: # build and push image to docker hub. build-docker-image: if: github.event_name == 'push' && (startsWith(github.ref, 'refs/heads/feature-') || github.ref == 'refs/heads/dev' || github.ref == 'refs/heads/beta' || startsWith(github.ref, 'refs/tags/ngx-') || startsWith(github.ref, 'refs/tags/beta-')) + concurrency: + group: ${{ github.workflow }}-build-docker-image-${{ github.ref }} + cancel-in-progress: true runs-on: ubuntu-20.04 needs: [tests-backend, tests-frontend] steps: