Skip to content

Commit

Permalink
ci: move the concurrency management at the dispatcher level
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Dec 9, 2024
1 parent 95b803c commit fcb3d3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ jobs:
matrix:
os: [ windows-2022, macos-14, ubuntu-24.04 ]
runs-on: ${{ matrix.os }}
concurrency:
group: build-${{ github.workflow }}-${{ matrix.os }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: DanySK/[email protected]
Expand Down Expand Up @@ -43,9 +40,6 @@ jobs:
permissions:
contents: write
packages: write
concurrency:
# Only one release job at a time. Strictly sequential.
group: release
needs:
- build
runs-on: ubuntu-24.04
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

jobs:
dispatcher:
runs-on: ubuntu-24.04
Expand Down

0 comments on commit fcb3d3d

Please sign in to comment.