From: Trenton Holmes Date: Sun, 17 Apr 2022 22:25:19 +0000 (-0700) Subject: Adds workflow level concurrency group with cancelling of in progress jobs to the CI X-Git-Tag: ngx-1.7.0~1^2~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F751%2Fhead;p=thirdparty%2Fpaperless-ngx.git Adds workflow level concurrency group with cancelling of in progress jobs to the CI --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cb8af9876b..0daf605c49 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: