Skip to content

Commit

Permalink
[CI/Build] Conditionally run yapf job
Browse files Browse the repository at this point in the history
Only run `yapf` job when the following paths change:

- any python file, `*.py`
- the workflow definition file

Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb committed Nov 1, 2024
1 parent 692d7cf commit bd611ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/yapf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ on:
push:
branches:
- main
paths:
- "**/*.py"
- .github/workflows/yapf.yml
pull_request:
branches:
- main
paths:
- "**/*.py"
- .github/workflows/yapf.yml

jobs:
yapf:
runs-on: ubuntu-latest
Expand Down

0 comments on commit bd611ca

Please sign in to comment.