Skip to content

Commit

Permalink
ci: Add a sanity check for path filters
Browse files Browse the repository at this point in the history
  • Loading branch information
bbhtt committed Nov 7, 2024
1 parent 5f83b48 commit fcbad9f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,21 @@ jobs:
- 'poetry.lock'
- 'pyproject.toml'
check:
runs-on: ubuntu-latest
timeout-minutes: 60
needs: changes
if: |
${{
needs.changes.outputs.exceptions == 'false' ||
needs.changes.outputs.exceptions == 'false' ||
needs.changes.outputs.src-extra == 'false' ||
needs.changes.outputs.docker == 'false'
}}
steps:
- name: Check
run: echo "No filter matched. Perhaps this file is not covered by CI" && exit 1

exceptions:
runs-on: ubuntu-latest
timeout-minutes: 60
Expand Down

0 comments on commit fcbad9f

Please sign in to comment.