mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 05:41:35 +00:00
chore(ci): restrict each job concurrency except for main branch (#117)
- save some compute minutes 🌱
- Limit concurrency by workflow + ref (except for main branch)
This commit is contained in:
parent
80bdfe7243
commit
a8df623269
6 changed files with 24 additions and 0 deletions
4
.github/workflows/go.yml
vendored
4
.github/workflows/go.yml
vendored
|
|
@ -7,6 +7,10 @@ on:
|
|||
branches: [main, "release/**"]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
go_test_short:
|
||||
env:
|
||||
|
|
|
|||
4
.github/workflows/golangci-lint.yml
vendored
4
.github/workflows/golangci-lint.yml
vendored
|
|
@ -13,6 +13,10 @@ permissions:
|
|||
# Optional: allow read access to pull request. Use with `only-new-issues` option.
|
||||
pull-requests: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
golangci:
|
||||
name: lint
|
||||
|
|
|
|||
4
.github/workflows/labels.yml
vendored
4
.github/workflows/labels.yml
vendored
|
|
@ -11,6 +11,10 @@ on:
|
|||
- .github/labels.yml
|
||||
- .github/workflows/labels.yml
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
labeler:
|
||||
permissions:
|
||||
|
|
|
|||
4
.github/workflows/libevm-delta.yml
vendored
4
.github/workflows/libevm-delta.yml
vendored
|
|
@ -7,6 +7,10 @@ on:
|
|||
branches: [main, "release/**"]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
diffs:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
4
.github/workflows/rename-module.yml
vendored
4
.github/workflows/rename-module.yml
vendored
|
|
@ -9,6 +9,10 @@ on:
|
|||
type: string
|
||||
default: "2bd6bd01d2e8561dd7fc21b631f4a34ac16627a1"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
rename-module:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
4
.github/workflows/yml.yml
vendored
4
.github/workflows/yml.yml
vendored
|
|
@ -9,6 +9,10 @@ on:
|
|||
- ".github/workflows/yml.yml"
|
||||
- ".github/yamllint.yml"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
yaml-check:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue