20
20
cache : pip
21
21
python-version : 3.12.1
22
22
- run : python -m pip install pre-commit regex
23
- - uses : actions/cache/restore@v3
23
+ - uses : actions/cache/restore@v4
24
24
with :
25
25
path : ~/.cache/pre-commit/
26
26
key : pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml')
@@ -32,17 +32,25 @@ jobs:
32
32
set -o pipefail
33
33
pre-commit gc
34
34
pre-commit run --show-diff-on-failure --color=always --all-files | tee ${RAW_LOG}
35
- - name : Convert Raw Log to CheckStyle format
36
- if : ${{ failure() }}
37
- run : |
38
- python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
39
- - name : Annotate Source Code with Messages
40
- uses : staabm/annotate-pull-request-from-checkstyle-action@v1
35
+ - name : Convert Raw Log to annotations
36
+
41
37
if : ${{ failure() }}
42
38
with :
43
- files : ${{ env.CS_XML }}
44
- notices-as-warnings : true # optional
45
- prepend-filename : true # optional
39
+ in : ${{ env.RAW_LOG }}
40
+ # Out can be omitted if you do not need the xml output
41
+ # out: ${{ env.CS_XML }}
42
+
43
+ # - name: Convert Raw Log to CheckStyle format
44
+ # if: ${{ failure() }}
45
+ # run: |
46
+ # python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
47
+ # - name: Annotate Source Code with Messages
48
+ # uses: staabm/annotate-pull-request-from-checkstyle-action@v1
49
+ # if: ${{ failure() }}
50
+ # with:
51
+ # files: ${{ env.CS_XML }}
52
+ # notices-as-warnings: true # optional
53
+ # prepend-filename: true # optional
46
54
- uses : actions/cache/save@v3
47
55
if : ${{ always() }}
48
56
with :
0 commit comments