Skip to content

Commit

Permalink
Merge pull request #2072 from tweag/cg/change_concurrency_in_workflow
Browse files Browse the repository at this point in the history
chore: specify concurrency for the whole workflow
  • Loading branch information
mergify[bot] authored Dec 6, 2023
2 parents d0caba3 + 10e85ef commit 60e7a0d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ env:
# Bump this number to invalidate the GH actions cache
cache-version: 0

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

jobs:
lint:
name: Format & Lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-lint
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -40,9 +41,6 @@ jobs:
name: Build & Test - Nixpkgs
needs:
- lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.module }}-${{ matrix.bzlmod }}-${{ matrix.ghc }}-nixpkgs
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -134,9 +132,6 @@ jobs:
name: Build & Test - bindist
needs:
- lint
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.module }}-${{ matrix.bzlmod }}-${{ matrix.ghc }}-bindist
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit 60e7a0d

Please sign in to comment.