Skip to content

Commit d00d55c

Browse files
committed
ci: cancel if new job arrived
1 parent 1c1b28e commit d00d55c

File tree

2 files changed

+17
-4
lines changed

2 files changed

+17
-4
lines changed

.github/workflows/analysis.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
name: "Analysis"
22

3-
on: [push, pull_request, workflow_dispatch]
3+
on:
4+
push:
5+
branches-ignore:
6+
- docs
7+
pull_request:
8+
branches: ["main"]
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref_name }}
13+
cancel-in-progress: true
414

515
jobs:
616
sonarcloud:

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@ name: "Build"
88

99
on:
1010
push:
11-
branches: ["**"]
12-
pull_request:
13-
branches: ["**"]
11+
branches-ignore:
12+
- docs
1413
workflow_dispatch:
1514

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref_name }}
17+
cancel-in-progress: true
18+
1619
jobs:
1720
swiftpm:
1821
name: "Swift Package Manager"

0 commit comments

Comments
 (0)