diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 18e8c09b9..e2f202045 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -9,6 +9,9 @@ jobs: matrix: os: [windows, macos, ubuntu] runs-on: ${{ matrix.os }}-latest + concurrency: + group: build-${{ github.workflow }}-${{ matrix.os }}-${{ github.event.number || github.ref }} + cancel-in-progress: true steps: - name: Checkout uses: DanySK/action-checkout@0.2.5 @@ -33,6 +36,9 @@ jobs: signing-password: ${{ secrets.SIGNING_PASSWORD }} test-alchemist-deployment: runs-on: ubuntu-latest + concurrency: + group: test-alchemist-deployment-${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true if: >- !github.event.repository.fork && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) @@ -78,6 +84,9 @@ jobs: signing-password: ${{ secrets.SIGNING_PASSWORD }} test-kt-multiplatform-deployment: runs-on: ubuntu-latest + concurrency: + group: test-kt-multiplatform-deployment-${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true if: >- !github.event.repository.fork && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) @@ -123,6 +132,9 @@ jobs: signing-password: ${{ secrets.SIGNING_PASSWORD }} test-multi-stage-deployment: runs-on: ubuntu-latest + concurrency: + group: test-multi-stage-deployment-${{ github.workflow }}-${{ github.event.number || github.ref }} + cancel-in-progress: true if: >- !github.event.repository.fork && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) @@ -193,7 +205,7 @@ jobs: && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) concurrency: # Only one release job at a time. Strictly sequential. - group: release + group: release-${{ github.workflow }}-${{ github.event.number || github.ref }} steps: - name: Checkout uses: actions/checkout@v3.3.0