Skip to content

Commit bf06777

Browse files
committed
do nothing if there are no changes in python files
1 parent 14faa37 commit bf06777

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,22 @@ runs:
2828
list-files: shell
2929

3030
- name: flake8
31+
if: steps.changes.outputs.addedOrModifiedPython == 'true'
3132
uses: reviewdog/action-flake8@v3
3233
with:
3334
flake8_args: ${{ steps.changes.outputs.addedOrModifiedPython_files }}
3435
reporter: ${{ steps.reporter-check.outputs.reporter }}
3536

3637
- name: mypy
38+
if: steps.changes.outputs.addedOrModifiedPython == 'true'
3739
uses: tsuyoshicho/[email protected]
3840
with:
3941
target: ""
4042
mypy_flags: ${{ steps.changes.outputs.addedOrModifiedPython_files }}
4143
reporter: ${{ steps.reporter-check.outputs.reporter }}
4244

4345
- name: pylint
46+
if: steps.changes.outputs.addedOrModifiedPython == 'true'
4447
uses: dciborow/[email protected]
4548
with:
4649
glob_pattern: ${{ steps.changes.outputs.addedOrModifiedPython_files }}

0 commit comments

Comments
 (0)