Skip to content

Commit 04670ea

Browse files
authored
only run docs CI/main CI for corresponding changes (pythonnet#2257)
1 parent 88418da commit 04670ea

File tree

4 files changed

+26
-1
lines changed

4 files changed

+26
-1
lines changed

.github/workflows/ARM.yml

+8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ on:
44
push:
55
branches:
66
- master
7+
paths-ignore:
8+
- .github/workflows/main.yml
9+
- .github/workflows/nuget-preview.yml
10+
- 'doc/**'
711
pull_request:
12+
paths-ignore:
13+
- .github/workflows/main.yml
14+
- .github/workflows/nuget-preview.yml
15+
- 'doc/**'
816

917
jobs:
1018
build-test-arm:

.github/workflows/docs.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Documentation
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
paths:
6+
- 'doc/**'
7+
- '.github/workflows/docs.yml'
8+
pull_request:
9+
paths:
10+
- 'doc/**'
11+
- '.github/workflows/docs.yml'
412

513
jobs:
614
build:

.github/workflows/main.yml

+8
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ on:
44
push:
55
branches:
66
- master
7+
paths-ignore:
8+
- .github/workflows/ARM.yml
9+
- .github/workflows/nuget-preview.yml
10+
- 'doc/**'
711
pull_request:
12+
paths-ignore:
13+
- .github/workflows/ARM.yml
14+
- .github/workflows/nuget-preview.yml
15+
- 'doc/**'
816

917
jobs:
1018
build-test:

pythonnet.sln

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ EndProject
2727
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "CI", "CI", "{D301657F-5EAF-4534-B280-B858D651B2E5}"
2828
ProjectSection(SolutionItems) = preProject
2929
.github\workflows\ARM.yml = .github\workflows\ARM.yml
30+
.github\workflows\docs.yml = .github\workflows\docs.yml
3031
.github\workflows\main.yml = .github\workflows\main.yml
3132
.github\workflows\nuget-preview.yml = .github\workflows\nuget-preview.yml
3233
EndProjectSection

0 commit comments

Comments
 (0)