Skip to content

Commit 9cac1d4

Browse files
authored
chore: add concurrency settings to workflow files for concurrent deployments (#263)
1 parent e27d4f0 commit 9cac1d4

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/GHPages.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
push:
55
branches: [master]
66

7+
# Allow one concurrent deployment
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
712
jobs:
813
deploy-docs:
914
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [master]
88

9+
# Allow one concurrent deployment
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
build-and-lint:
1116
runs-on: ubuntu-latest

.github/workflows/format.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ permissions:
77
contents: write
88
pull-requests: write
99

10+
# Allow one concurrent deployment
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1015
jobs:
1116
format:
1217
runs-on: ubuntu-latest

.github/workflows/test-build-resources-with-pandoc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ permissions:
1515
issues: write
1616
pull-requests: write
1717

18+
# Allow one concurrent deployment
19+
concurrency:
20+
group: ${{ github.workflow }}-${{ github.ref }}
21+
cancel-in-progress: true
22+
1823
jobs:
1924
build-resources-with-pandoc:
2025
if: github.repository == 'future-architect/coding-standards'

0 commit comments

Comments
 (0)