Skip to content

Commit 7a75d19

Browse files
authored
Merge pull request #546 from nimblehq/feature/462-add-support-for-concurrency-cicd
[#462] Update GitHub workflows to use concurrency
2 parents b90cbe3 + f2123c6 commit 7a75d19

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

.cicdtemplate/.github/workflows/bump_version.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
required: true
99
type: string
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
bump_version:
1317
name: Bump version

.cicdtemplate/.github/workflows/review_pull_request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
types: [ opened, edited, reopened, synchronize ]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
review_pull_request:
913
name: Review pull request

.cicdtemplate/.github/workflows/run_detekt_and_unit_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
- develop
1111
- 'release/**'
1212

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1317
jobs:
1418
run_detekt_and_unit_tests:
1519
name: Run Detekt and unit tests

.github/workflows/bump_version.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
required: true
99
type: string
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
bump_version:
1317
name: Bump version

.github/workflows/draft-new-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
permissions:
99
contents: read
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
draft_new_release:
1317
permissions:

.github/workflows/review_pull_request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
types: [ opened, edited, reopened, synchronize ]
66

7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
711
jobs:
812
review_pull_request:
913
name: Review pull request

.github/workflows/run_detekt_and_unit_tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Run Detekt and unit tests
22

33
on: push
44

5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: true
8+
59
jobs:
610
run_detekt_and_unit_tests:
711
name: Run Detekt and unit tests

.github/workflows/verify_newproject_script.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
types: [ opened, reopened, synchronize ]
66
branches: [ develop ]
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
verify_newproject_script:
1014
name: Verify newproject script

0 commit comments

Comments
 (0)