Skip to content

Commit 61f9b63

Browse files
committed
ci: add concurrency settings to workflow files
1 parent e47d83c commit 61f9b63

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/develop-push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- develop
77

8+
# Add concurrency to ensure only one workflow runs at a time
9+
concurrency:
10+
group: develop-push-${{ github.ref }}
11+
cancel-in-progress: false
12+
813
# Add permissions needed for GHCR
914
permissions:
1015
contents: read

.github/workflows/main-push.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- main
77

8+
# Add concurrency to ensure only one workflow runs at a time
9+
concurrency:
10+
group: main-push-${{ github.ref }}
11+
cancel-in-progress: false
12+
813
# Minimal permissions for test-only workflow
914
permissions:
1015
contents: read

.github/workflows/pull-request.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
- main
77
- develop
88

9+
# Add concurrency to ensure only one workflow runs at a time per PR
10+
concurrency:
11+
group: pull-request-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
914
# Add permissions needed for PR comments
1015
permissions:
1116
contents: read

.github/workflows/release-tag.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
tags:
66
- 'v*.*.*'
77

8+
# Add concurrency to ensure only one release workflow runs at a time
9+
concurrency:
10+
group: release-tag-${{ github.ref_name }}
11+
cancel-in-progress: false
12+
813
# Add permissions needed for GHCR
914
permissions:
1015
contents: read

0 commit comments

Comments
 (0)