Skip to content

Commit

Permalink
GH actions - Exclude CI and main for 'docs' changes
Browse files Browse the repository at this point in the history
Do not run the CI or main actions once there are only changes to
documentation.
  • Loading branch information
jomey committed Sep 19, 2024
1 parent 76d8c92 commit 70d9616
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ name: Code Quality
on:
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ master ]
paths-ignore:
- 'docs/**'
jobs:
run:
runs-on: ubuntu-latest
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths-ignore:
- 'docs/**'
pull_request:
branches: [ master ]
workflow_dispatch:
paths-ignore:
- 'docs/**'

jobs:
build:
Expand Down

0 comments on commit 70d9616

Please sign in to comment.