Skip to content

Commit

Permalink
workflow: Fix error outputs for compile-check
Browse files Browse the repository at this point in the history
  • Loading branch information
MonsterDruide1 committed Jan 19, 2025
1 parent d0f4c6a commit a1dc30a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/compile-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ jobs:
run: tools/build.py
- name: Verify function states
run: |
var="$(tools/check 2>&1)"
if [[ "$var" == "OK" ]]; then
var="$(tools/check 2> errfile || true)"
if [[ "$(cat errfile)" == "OK" ]]; then
exit 0
else
echo $var;
exit 1
cat errfile | tr '\n' '\f' | sed 's/Stack backtrace:.*//' | tr '\f' '\n'
exit 2
fi

0 comments on commit a1dc30a

Please sign in to comment.