Skip to content

Commit 06706ec

Browse files
feat: Add concurrency settings to workflow files for improved job management
1 parent 5cdc49f commit 06706ec

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/codequality.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ on:
1313

1414
permissions: {}
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
quality:
1822
permissions:
1923
contents: read
2024
actions: read
2125
security-events: write
26+
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
2227
uses: frasermolyneux/actions/.github/workflows/codequality.yml@main
2328
with:
2429
sonar-project-key: frasermolyneux_portal-web
@@ -37,13 +42,14 @@ jobs:
3742
actions: read
3843
id-token: write
3944
security-events: write
45+
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
4046
uses: frasermolyneux/actions/.github/workflows/devops-secure-scanning.yml@main
4147

4248
dependency-review:
4349
permissions:
4450
contents: read
4551
pull-requests: write
46-
if: github.event_name == 'pull_request'
52+
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
4753
runs-on: ubuntu-latest
4854
steps:
4955
- name: Checkout repository

.github/workflows/coding-agent-pr-gate.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66

77
permissions: {}
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+
cancel-in-progress: true
12+
913
jobs:
1014
checklist-gate:
1115
name: PR body checklist gate

.github/workflows/pr-verify.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
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
build-and-test:
1620
permissions:

0 commit comments

Comments
 (0)