Skip to content

Commit 63081b9

Browse files
authored
Skip workflows if only non-source-code files are changed (#839)
Skip workflows in PRs if **ONLY** the following are changed: ``` - 'doc/**' - '*.md' - '*.json' - 'README.rst' - 'LICENSE.txt' ``` Any other changes (especially changes in `pygmt/` and `examples/`) still trigger the workflows. **Notes:** - `examples/` directory is not excluded because some examples may pass on one OS but fail on another one. - the workflow is always triggered in the master branch even though only plaintext files are changed Fixes #837. Reference: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestpaths
1 parent f62218d commit 63081b9

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/ci_tests.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
push:
88
branches: [ master ]
99
pull_request:
10+
paths-ignore:
11+
- 'doc/**'
12+
- '*.md'
13+
- '*.json'
14+
- 'README.rst'
15+
- 'LICENSE.txt'
1016
release:
1117
types:
1218
- published

.github/workflows/ci_tests_dev.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
# branches: [ master ]
99
pull_request:
1010
types: [ready_for_review]
11+
paths-ignore:
12+
- 'doc/**'
13+
- '*.md'
14+
- '*.json'
15+
- 'README.rst'
16+
- 'LICENSE.txt'
1117
repository_dispatch:
1218
types: [test-gmt-dev-command]
1319
# Schedule daily tests

0 commit comments

Comments
 (0)