Skip to content

Commit

Permalink
feature/limit workflow runs to only relevant file changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnth committed Nov 21, 2023
1 parent 199dc3f commit cd294ce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
# using the `master` branch as the default branch.
push:
branches: [main]
paths: 'docs/**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,16 @@ name: Python package
on:
push:
branches: [ main ]
paths-ignore:
- './README.md'
- 'docs/**'
- '.github/workflows/deploy_docs.md'
pull_request:
branches: [ main ]
paths-ignore:
- './README.md'
- 'docs/**'
- '.github/workflows/deploy_docs.md'

jobs:
build:
Expand Down

0 comments on commit cd294ce

Please sign in to comment.