Skip to content

Commit e812c1d

Browse files
committed
build: add concurrency to github workflows
1 parent 2491228 commit e812c1d

14 files changed

+59
-12
lines changed

.github/workflows/alpine.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ on:
1313
- '**.md'
1414
- 'docs/**'
1515

16+
permissions:
17+
contents: read
18+
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1623
jobs:
1724
ubuntu-build:
1825
runs-on: ubuntu-latest

.github/workflows/documentation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ permissions:
1212
pages: write
1313
id-token: write
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
deploy:
1721
runs-on: ubuntu-latest

.github/workflows/lint_and_format_check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
lint-and-format:
2125
runs-on: ubuntu-latest

.github/workflows/ubuntu-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
ubuntu-release-build:
2125
runs-on: ubuntu-22.04

.github/workflows/ubuntu-s390x.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
build:
2125
runs-on: ubuntu-latest

.github/workflows/ubuntu-sanitized.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
ubuntu-build:
21-
if: >-
22-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
23-
! contains(toJSON(github.event.commits.*.message), '[skip github]')
2425
runs-on: ubuntu-22.04
2526
strategy:
2627
matrix:

.github/workflows/ubuntu-undef.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
ubuntu-build:
21-
if: >-
22-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
23-
! contains(toJSON(github.event.commits.*.message), '[skip github]')
2425
runs-on: ubuntu-22.04
2526
strategy:
2627
matrix:

.github/workflows/ubuntu.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
ubuntu-build:
21-
if: >-
22-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
23-
! contains(toJSON(github.event.commits.*.message), '[skip github]')
2425
runs-on: ubuntu-22.04
2526
strategy:
2627
matrix:

.github/workflows/ubuntu_install.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
ubuntu-build:
21-
if: >-
22-
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
23-
! contains(toJSON(github.event.commits.*.message), '[skip github]')
2425
runs-on: ubuntu-22.04
2526
steps:
2627
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0

.github/workflows/ubuntu_old.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
permissions:
1717
contents: read
1818

19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1923
jobs:
2024
ubuntu-build:
2125
runs-on: ubuntu-20.04

0 commit comments

Comments
 (0)