Skip to content

Commit 905dfc1

Browse files
committed
Add missing egrep command after pipe
1 parent 10efd90 commit 905dfc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/python-testing.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
- name: Check for file changes
5050
id: check_files
5151
run: |
52-
can_run=$(git diff --name-only ${{ github.event.after }} ${{ github.event.before }})
52+
can_run=$(git diff --name-only ${{ github.event.after }} ${{ github.event.before }} | \
53+
egrep -q '.github/workflows/|pyproject.toml|setup.cfg|\.py$' && echo 1 || echo 0)
5354
echo "can_run=$can_run" >> $GITHUB_OUTPUT
5455
5556
skip_test:

0 commit comments

Comments
 (0)