Skip to content

Commit

Permalink
Add error to try action
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Jan 16, 2024
1 parent 0a715f1 commit bad825d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions logToCs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 15 in logToCs.py

View workflow job for this annotation

GitHub Actions / pre-commit

logToCs.py: xwindows ==> x
# Examples
Assumes that logToCs.py is available as .github/logToCs.py.
Expand Down

0 comments on commit bad825d

Please sign in to comment.