-
Notifications
You must be signed in to change notification settings - Fork 701
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not run CI for documentation changes
The github workflows are not run if the changes are completely contained within the doc/ subdirectory. The only exception is the users-guide.yml github action.
- Loading branch information
1 parent
6b2f332
commit e7e3caf
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ name: Formatting | |
|
||
on: | ||
pull_request: | ||
paths-ignore: 'doc/**' | ||
push: | ||
branches: ["master"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Validate Patch | ||
|
||
# This Workflow is special and contains a workaround for a known limitation of GitHub CI. | ||
# | ||
# The problem: We don't want to run the "validate" jobs on PRs which contain only changes | ||
# to the docs, since these jobs take a long time to complete. We therefore use path-filtering | ||
# in the workflow triggers for the validate jobs, namely "paths_ignore: doc/**". | ||
# The problem is that the | ||
on: | ||
push: | ||
paths: 'doc/**' | ||
branches: | ||
- master | ||
pull_request: | ||
paths: 'doc/**' | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
validate-post-job: | ||
if: always() | ||
name: Validate post job | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters