Skip to content

Commit

Permalink
ci: move the CI concurrency management to the dispatcher workflow (#4058
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DanySK authored Dec 29, 2024
1 parent b1daac5 commit 353e5dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ defaults:
run:
shell: bash

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'master') }}

jobs:
# Prepare the environment for the build
ci-preparation:
Expand Down Expand Up @@ -423,11 +419,6 @@ jobs:
- test-linux-deb-installer
- test-linux-rpm-installer
- test-windows-msi-installer
concurrency:
# Only one release job at a time per branch, as only master releases.
# Strictly sequential.
group: release-${{ needs.ci-preparation.outputs.build-ref }}
cancel-in-progress: false
runs-on: ubuntu-24.04
outputs:
winget-deploy: ${{ steps.check-released.outputs.has-released }}
Expand Down Expand Up @@ -530,9 +521,6 @@ jobs:
needs:
- ci-preparation
- release
concurrency:
group: release-winget-${{ needs.ci-preparation.outputs.build-ref }}
cancel-in-progress: false
runs-on: windows-2022
env:
packageID: "Unibo.Alchemist"
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dispatcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ on:
pull_request:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: ${{ !contains(github.ref, 'master') }}

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

0 comments on commit 353e5dc

Please sign in to comment.