Skip to content

Commit aa8a094

Browse files
committed
Only run workflows when necessary
1 parent 7391862 commit aa8a094

File tree

7 files changed

+45
-5
lines changed

7 files changed

+45
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,25 @@
11
---
22
name: CodeQL
33

4-
permissions:
5-
actions: read
6-
contents: read
7-
security-events: write
8-
94
on:
105
push:
116
paths-ignore:
127
- "dependabot/**"
8+
- '.github/workflows/**'
9+
- '!.github/workflows/codeql-analysis.yml'
1310
pull_request:
1411
branches:
1512
- "dependabot/**"
13+
- '.github/workflows/**'
14+
- '!.github/workflows/codeql-analysis.yml'
1615
schedule:
1716
- cron: '18 23 * * 1'
1817

18+
permissions:
19+
actions: read
20+
contents: read
21+
security-events: write
22+
1923
jobs:
2024
analyze:
2125
name: Analyze

.github/workflows/cpp-linter.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: cpp-linter
22

33
on:
44
push:
5+
paths-ignore:
6+
- '.github/workflows/**'
7+
- '!.github/workflows/cpp-linter.yml'
58
pull_request:
9+
paths-ignore:
10+
- '.github/workflows/**'
11+
- '!.github/workflows/cpp-linter.yml'
612
workflow_dispatch:
713

814
jobs:

.github/workflows/dockcross.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: Dockcross
33

44
on:
55
push:
6+
paths-ignore:
7+
- '.github/workflows/**'
8+
- '!.github/workflows/dockcross.yml'
69
pull_request:
10+
paths-ignore:
11+
- '.github/workflows/**'
12+
- '!.github/workflows/dockcross.yml'
713
workflow_dispatch:
814

915
concurrency:

.github/workflows/docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: docs
33

44
on:
55
push:
6+
paths-ignore:
7+
- '.github/workflows/**'
8+
- '!.github/workflows/docs.yml'
69
pull_request:
10+
paths-ignore:
11+
- '.github/workflows/**'
12+
- '!.github/workflows/docs.yml'
713
workflow_dispatch:
814

915
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages

.github/workflows/linux.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: Linux
33

44
on:
55
push:
6+
paths-ignore:
7+
- '.github/workflows/**'
8+
- '!.github/workflows/linux.yml'
69
pull_request:
10+
paths-ignore:
11+
- '.github/workflows/**'
12+
- '!.github/workflows/linux.yml'
713
workflow_dispatch:
814

915
concurrency:

.github/workflows/macOS.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: macOS
33

44
on:
55
push:
6+
paths-ignore:
7+
- '.github/workflows/**'
8+
- '!.github/workflows/macOS.yml'
69
pull_request:
10+
paths-ignore:
11+
- '.github/workflows/**'
12+
- '!.github/workflows/macOS.yml'
713
workflow_dispatch:
814

915
concurrency:

.github/workflows/windows.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ name: Windows
33

44
on:
55
push:
6+
paths-ignore:
7+
- '.github/workflows/**'
8+
- '!.github/workflows/windows.yml'
69
pull_request:
10+
paths-ignore:
11+
- '.github/workflows/**'
12+
- '!.github/workflows/windows.yml'
713
workflow_dispatch:
814

915
concurrency:

0 commit comments

Comments
 (0)