File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 11---
22name : Lint Python
33on : # yamllint disable-line rule:truthy
4- workflow_dispatch :
54 pull_request :
65 paths :
76 - ' **/*.py'
@@ -18,12 +17,12 @@ jobs:
1817 steps :
1918 - uses : actions/checkout@v3
2019 with :
21- fetch-depth : 2
20+ fetch-depth : 0
2221
2322 - name : Modified files
2423 id : file-changes
2524 run : |
26- echo "changed-files=$(git diff --name-only -r HEAD^1 HEAD | grep '\.py' | tr '\n' ' ')" >> $GITHUB_OUTPUT
25+ echo "changed-files=$(git diff --name-only -r origin/${GITHUB_BASE_REF} origin/${GITHUB_HEAD_REF} | grep '\.py' | tr '\n' ' ')" >> $GITHUB_OUTPUT
2726
2827 - name : Check GitHub event type to determine reporter type
2928 run : |
4342 with :
4443 fail_on_error : false
4544 filter_mode : diff_context
46- level : warning
45+ level : error
4746 flake8_args : ${{ steps.file-changes.outputs.changed-files }}
4847 reporter : ${{ env.REVIEWDOG_REPORTER }}
You can’t perform that action at this time.
0 commit comments