Skip to content

Commit 9261246

Browse files
committed
Workflows: limit execution of e3sm-gh-ci/e3sm-gh-ci-w workflows
1 parent f5894d8 commit 9261246

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/e3sm-gh-ci-cime-tests.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ on:
77
- maint-3.0
88
paths:
99
# first, yes to these
10-
- '.github/workflows/e3sm-gh-ci-cime-tests.yml'
1110
- 'cime_config/**'
1211
- 'components/eam/**'
1312
- 'components/eamxx/**'
1413
- 'components/elm/**'
1514
- 'driver-moab/**'
1615
- 'driver-mct/**'
1716
# second, no to these
18-
- '!components/eam/docs/**'
19-
- '!components/eam/mkdocs.yml'
20-
- '!components/eamxx/docs/**'
21-
- '!components/eamxx/mkdocs.yml'
22-
- '!components/elm/docs/**'
23-
- '!components/elm/mkdocs.yml'
17+
- '!**/docs/**'
18+
- '!**/mkdocs.yml'
19+
- '!.github/workflows/**'
20+
# Third, DO run if THIS workflow file changes
21+
- '.github/workflows/e3sm-gh-ci-cime-tests.yml'
2422

2523
workflow_dispatch:
2624

.github/workflows/e3sm-gh-ci-w-cime-tests.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ on:
55
branches:
66
- master
77
- maint-3.0
8-
paths-ignore:
9-
- 'mkdocs.yaml'
10-
- 'docs/**'
11-
- 'components/*/docs/**'
12-
- 'components/*/mkdocs.yml'
8+
paths:
9+
- '!**/docs/**'
10+
- '!**/mkdocs.yml'
11+
- '!.github/workflows/**'
12+
- '.github/workflows/e3sm-gh-ci-w-cime-tests.yml'
13+
1314

1415
workflow_dispatch:
1516

0 commit comments

Comments
 (0)