Skip to content

Commit

Permalink
[CI] Prevented Running the CI If Only the Documentation Is Updated
Browse files Browse the repository at this point in the history
Added a `path-ignore` filter to the GitHub Actions triggers (including
`push` and `pull_request`) to filter out any push or pull request that
only includes docs updates.

The "Test" and "Containers" workflows will be skipped if a push or a PR
only contains changes to the documentation, such as the developer guide
and README, so that we can save CI resources for other uses.
  • Loading branch information
ueqri committed Jun 7, 2024
1 parent 41072d4 commit 5aba9c5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ on:
push:
branches:
- master
paths-ignore: # Prevents from running if only docs are updated
- 'doc/**'
- '**/*README*'
- '**.md'
- '**.rst'
pull_request:
paths-ignore: # Prevents from running if only docs are updated
- 'doc/**'
- '**/*README*'
- '**.md'
- '**.rst'
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # weekly
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ on:
push:
branches:
- master
paths-ignore: # Prevents from running if only docs are updated
- 'doc/**'
- '**/*README*'
- '**.md'
- '**.rst'
pull_request:
paths-ignore: # Prevents from running if only docs are updated
- 'doc/**'
- '**/*README*'
- '**.md'
- '**.rst'
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # daily
Expand Down

0 comments on commit 5aba9c5

Please sign in to comment.