File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
name : Lint Python
3
3
on : # yamllint disable-line rule:truthy
4
- workflow_dispatch :
5
4
pull_request :
6
5
paths :
7
6
- ' **/*.py'
@@ -18,12 +17,12 @@ jobs:
18
17
steps :
19
18
- uses : actions/checkout@v3
20
19
with :
21
- fetch-depth : 2
20
+ fetch-depth : 0
22
21
23
22
- name : Modified files
24
23
id : file-changes
25
24
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
27
26
28
27
- name : Check GitHub event type to determine reporter type
29
28
run : |
43
42
with :
44
43
fail_on_error : false
45
44
filter_mode : diff_context
46
- level : warning
45
+ level : error
47
46
flake8_args : ${{ steps.file-changes.outputs.changed-files }}
48
47
reporter : ${{ env.REVIEWDOG_REPORTER }}
You can’t perform that action at this time.
0 commit comments