Skip to content

Commit 60e7a0d

Browse files
authored
Merge pull request #2072 from tweag/cg/change_concurrency_in_workflow
chore: specify concurrency for the whole workflow
2 parents d0caba3 + 10e85ef commit 60e7a0d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/workflow.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ env:
1111
# Bump this number to invalidate the GH actions cache
1212
cache-version: 0
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
17+
1418
jobs:
1519
lint:
1620
name: Format & Lint
17-
concurrency:
18-
group: ${{ github.workflow }}-${{ github.ref }}-lint
19-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
2021
runs-on: ubuntu-latest
2122
steps:
2223
- uses: actions/checkout@v4
@@ -40,9 +41,6 @@ jobs:
4041
name: Build & Test - Nixpkgs
4142
needs:
4243
- lint
43-
concurrency:
44-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.module }}-${{ matrix.bzlmod }}-${{ matrix.ghc }}-nixpkgs
45-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
4644
strategy:
4745
fail-fast: false
4846
matrix:
@@ -134,9 +132,6 @@ jobs:
134132
name: Build & Test - bindist
135133
needs:
136134
- lint
137-
concurrency:
138-
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.module }}-${{ matrix.bzlmod }}-${{ matrix.ghc }}-bindist
139-
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
140135
strategy:
141136
fail-fast: false
142137
matrix:

0 commit comments

Comments
 (0)