Skip to content

Commit 7616179

Browse files
authored
Merge branch 'mahf708/docs/do-not-build-all-the-time' (PR #6865)
Only run docs workflows when docs are touched. This reduces the comments by the GitHub-actions [bot] on PRs. [BFB]
2 parents 63f894d + 2da2a47 commit 7616179

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/e3sm-gh-pages.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,27 @@ on:
44
# Runs every time master branch is updated
55
push:
66
branches: ["master"]
7+
# But only if docs-related files are touched
8+
paths:
9+
- .github/workflows/e3sm-gh-pages.yml
10+
- ./mkdocs.yml
11+
- ./tools/*/mkdocs.yml
12+
- ./tools/docs/**
13+
- components/*/mkdocs.yaml
14+
- components/*/docs/**
15+
- components/eamxx/cime_config/namelist_defaults_scream.xml
716
# Runs every time a PR is open against master
817
pull_request:
918
branches: ["master"]
19+
# But only if docs-related files are touched
20+
paths:
21+
- .github/workflows/e3sm-gh-pages.yml
22+
- ./mkdocs.yml
23+
- ./tools/*/mkdocs.yml
24+
- ./tools/docs/**
25+
- components/*/mkdocs.yaml
26+
- components/*/docs/**
27+
- components/eamxx/cime_config/namelist_defaults_scream.xml
1028
workflow_dispatch:
1129

1230
concurrency:

0 commit comments

Comments
 (0)