Skip to content

Commit

Permalink
Merge branch 'main' into test_branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Feb 18, 2024
2 parents d638d4a + 2355f14 commit 71bc8b7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
- name: Convert Raw Log to Checkstyle format (launch action)
uses: mdeweerd/logToCheckStyle@test5
uses: mdeweerd/logToCheckStyle@test6
if: ${{ failure() }}
with:
in: ${{ env.RAW_LOG }}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ optional arguments:
```yaml
- name: Convert Raw Log to Checkstyle format (launch action)
uses: mdeweerd/logToCheckStyle@test5
uses: mdeweerd/logToCheckStyle@test6
if: ${{ failure() }}
with:
in: ${{ env.RAW_LOG }}
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ runs:
run: |
echo ::group::Analyze log file
python -m pip install regex
./entrypoint.sh '${{ inputs.in }}' '${{ inputs.out }}' '${{ inputs.root }}', '${{ inputs.annotate }}'
'${{ github.action_path }}/entrypoint.sh' '${{ inputs.in }}' '${{ inputs.out }}' '${{ inputs.root }}', '${{ inputs.annotate }}'
echo ::endgroup::
6 changes: 5 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/sh -l
ANNOTATE=""
echo "CMD: $0/$(realpath "$0") PWD: $PWD ARGS: ${@[*]}"
LOGTOCS=$(realpath "$(dirname "$0")/logToCs.py")
if [[ "$(uname -a)" =~ "MINGW"* ]] || [[ "$(uname -a)" =~ "CYGWIN"* ]] ; then
LOGTOCS=$(cygpath -w "${LOGTOCS}")
fi

[ "$3" = "true" ] && ANNOTATE="--github-annotate"
[ "$3" = "false" ] && ANNOTATE="--no-github-annotate"
[ "$3" = "" ] && python ./logToCs.py "$1" "$2" --root "$PWD" && exit 0
Expand Down

0 comments on commit 71bc8b7

Please sign in to comment.