Skip to content

Commit ca7142f

Browse files
committed
chore: Add workflow concurrency management
1 parent 8165258 commit ca7142f

File tree

6 files changed

+24
-0
lines changed

6 files changed

+24
-0
lines changed

.github/workflows/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ on:
99
permissions:
1010
contents: read
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
lint:
1418
name: Lint

.github/workflows/dependency-review.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on: [pull_request]
1111

1212
permissions: {}
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
dependency-review:
1620
permissions:

.github/workflows/publish-gem.yml

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ on:
1919

2020
permissions: {}
2121

22+
concurrency:
23+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
24+
cancel-in-progress: true
25+
2226
jobs:
2327
release:
2428
if: github.repository == 'mime-types/ruby-mime-types' && (github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged))

.github/workflows/reviewdog.yml

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55

66
permissions: {}
77

8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
typos:
1014
if: ${{ github.event.action != 'closed' }}

.github/workflows/scorecards.yml

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
# Declare default permissions as read only.
1818
permissions: {}
1919

20+
concurrency:
21+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
22+
cancel-in-progress: true
23+
2024
jobs:
2125
analysis:
2226
name: Scorecard analysis

.github/workflows/zizmor.yml

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
permissions: {}
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
zizmor:
1216
name: zizmor latest via uv

0 commit comments

Comments
 (0)