Skip to content

Commit c687962

Browse files
committed
Move concurrency block to the workflow level
1 parent 5e85cd4 commit c687962

File tree

6 files changed

+24
-21
lines changed

6 files changed

+24
-21
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ on:
77
branches: [main, "release/**"]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
13+
1014
jobs:
1115
go_test_short:
1216
env:
1317
FLAKY_REGEX: "ava-labs/libevm/(triedb/pathdb|eth|eth/tracers/js|eth/tracers/logger|accounts/abi/bind|accounts/keystore|eth/downloader|miner|ethclient|ethclient/gethclient|eth/catalyst)$"
1418
runs-on: ubuntu-latest
15-
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1819
steps:
1920
- uses: actions/checkout@v4
2021
- name: Set up Go
@@ -33,9 +34,6 @@ jobs:
3334
env:
3435
EXCLUDE_REGEX: "ava-labs/libevm/(accounts/usbwallet/trezor)$"
3536
runs-on: ubuntu-latest
36-
concurrency:
37-
group: ${{ github.workflow }}-${{ github.ref }}
38-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
3937
steps:
4038
- uses: actions/checkout@v4
4139
- name: Set up Go

.github/workflows/golangci-lint.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ permissions:
1313
# Optional: allow read access to pull request. Use with `only-new-issues` option.
1414
pull-requests: read
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
19+
1620
jobs:
1721
golangci:
1822
name: lint
1923
runs-on: ubuntu-latest
20-
concurrency:
21-
group: ${{ github.workflow }}-${{ github.ref }}
22-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2324
steps:
2425
- uses: actions/checkout@v4
2526
- uses: actions/setup-go@v5

.github/workflows/labels.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ on:
1111
- .github/labels.yml
1212
- .github/workflows/labels.yml
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
17+
1418
jobs:
1519
labeler:
1620
permissions:
1721
contents: read
1822
issues: write
19-
concurrency:
20-
group: ${{ github.workflow }}-${{ github.ref }}
21-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2223
runs-on: ubuntu-latest
2324
steps:
2425
- uses: actions/checkout@v4

.github/workflows/libevm-delta.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ on:
77
branches: [main, "release/**"]
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
13+
1014
jobs:
1115
diffs:
1216
runs-on: ubuntu-latest
13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1617
steps:
1718
- uses: actions/checkout@v4
1819
with:

.github/workflows/rename-module.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ on:
99
type: string
1010
default: "2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1"
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
15+
1216
jobs:
1317
rename-module:
1418
runs-on: ubuntu-latest
15-
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1819
steps:
1920
- uses: actions/checkout@v4
2021
with:

.github/workflows/yml.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@ on:
99
- ".github/workflows/yml.yml"
1010
- ".github/yamllint.yml"
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
15+
1216
jobs:
1317
yaml-check:
1418
runs-on: ubuntu-latest
15-
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
17-
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1819
steps:
1920
- uses: actions/checkout@v4
2021
- name: Validate YAML files

0 commit comments

Comments
 (0)