Skip to content

Commit 5e85cd4

Browse files
committed
chore(ci): restrict each job concurrency to 1 except for main branch
1 parent eda3b59 commit 5e85cd4

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

.github/workflows/go.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
env:
1313
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)$"
1414
runs-on: ubuntu-latest
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1518
steps:
1619
- uses: actions/checkout@v4
1720
- name: Set up Go
@@ -30,6 +33,9 @@ jobs:
3033
env:
3134
EXCLUDE_REGEX: "ava-labs/libevm/(accounts/usbwallet/trezor)$"
3235
runs-on: ubuntu-latest
36+
concurrency:
37+
group: ${{ github.workflow }}-${{ github.ref }}
38+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
3339
steps:
3440
- uses: actions/checkout@v4
3541
- name: Set up Go

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
golangci:
1818
name: lint
1919
runs-on: ubuntu-latest
20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.ref }}
22+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
2023
steps:
2124
- uses: actions/checkout@v4
2225
- uses: actions/setup-go@v5

.github/workflows/labels.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
permissions:
1717
contents: read
1818
issues: write
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1922
runs-on: ubuntu-latest
2023
steps:
2124
- uses: actions/checkout@v4

.github/workflows/libevm-delta.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
jobs:
1111
diffs:
1212
runs-on: ubuntu-latest
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1316
steps:
1417
- uses: actions/checkout@v4
1518
with:

.github/workflows/rename-module.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
jobs:
1313
rename-module:
1414
runs-on: ubuntu-latest
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1518
steps:
1619
- uses: actions/checkout@v4
1720
with:

.github/workflows/yml.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
jobs:
1313
yaml-check:
1414
runs-on: ubuntu-latest
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1518
steps:
1619
- uses: actions/checkout@v4
1720
- name: Validate YAML files

0 commit comments

Comments
 (0)