diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 6c31a18..bc441ae 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -30,12 +30,13 @@ jobs: set -o pipefail pre-commit gc pre-commit run --show-diff-on-failure --color=always --all-files | tee ${RAW_LOG} - - name: Convert Raw Log to CheckStyle format - if: ${{ failure() }} + - name: Convert Raw Log to CheckStyle format (launch script) + # if: ${{ failure() }} + if: false run: | python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML} - name: Convert Raw Log to Checkstyle format (launch action) - uses: mdeweerd/logToCheckStyle@v2024.1.4 + uses: mdeweerd/logToCheckStyle@v2024.1.5 if: ${{ failure() }} with: in: ${{ env.RAW_LOG }} diff --git a/entrypoint.sh b/entrypoint.sh index 48ffb85..2e88da6 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/bash -lxv -[ "$3" = "" ] && python /logToCs.py "$1" "$2" --root "$PWD" -[ "$3" != "" ] && python /logToCs.py "$1" "$2" --root "$3" +[ "$3" = "" ] && python /logToCs.py "$1" "$2" --root "$PWD" && exit 0 +[ "$3" != "" ] && python /logToCs.py "$1" "$2" --root "$3" && exit 0 diff --git a/logToCs.py b/logToCs.py index d2260d4..9306712 100755 --- a/logToCs.py +++ b/logToCs.py @@ -10,6 +10,10 @@ Note: this script is very young and "quick and dirty". Patterns can be added to "PATTERNS" to match more messages. +master +dmmy +xwindows + # Examples Assumes that logToCs.py is available as .github/logToCs.py.