Skip to content

Commit

Permalink
ci: cancel obsolete jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK authored Feb 18, 2023
1 parent dcaf36c commit ed9afa7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit ed9afa7

Please sign in to comment.