Skip to content

Commit

Permalink
Merge branch 'mahf708/docs/do-not-build-all-the-time' into next (PR #…
Browse files Browse the repository at this point in the history
…6865)

Only run docs workflows when docs are touched. This reduces the comments by the GitHub-actions [bot] on PRs.

[BFB]
  • Loading branch information
rljacob committed Dec 31, 2024
2 parents 5afdc6f + 2da2a47 commit ecc020e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/e3sm-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,27 @@ on:
# Runs every time master branch is updated
push:
branches: ["master"]
# But only if docs-related files are touched
paths:
- .github/workflows/e3sm-gh-pages.yml
- ./mkdocs.yml
- ./tools/*/mkdocs.yml
- ./tools/docs/**
- components/*/mkdocs.yaml
- components/*/docs/**
- components/eamxx/cime_config/namelist_defaults_scream.xml
# Runs every time a PR is open against master
pull_request:
branches: ["master"]
# But only if docs-related files are touched
paths:
- .github/workflows/e3sm-gh-pages.yml
- ./mkdocs.yml
- ./tools/*/mkdocs.yml
- ./tools/docs/**
- components/*/mkdocs.yaml
- components/*/docs/**
- components/eamxx/cime_config/namelist_defaults_scream.xml
workflow_dispatch:

concurrency:
Expand Down

0 comments on commit ecc020e

Please sign in to comment.