Skip to content

Commit 8e6f0d1

Browse files
committed
Stop running jobs when a new change is pushed
1 parent f245620 commit 8e6f0d1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/pr-security.yml

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

7+
# Cancel in-progress runs when a new commit is pushed
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
712
jobs:
813
security-scan:
914
name: Security Analysis with SonarCloud

.github/workflows/test.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: [ "main" ]
88

9+
# Cancel in-progress runs when a new commit is pushed
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
914
jobs:
1015
test:
1116
name: Build and Test default scheme using any available Apple simulator

0 commit comments

Comments
 (0)