From 683ba8b8d4cd1e299c212bf5721634ccd3a1757f Mon Sep 17 00:00:00 2001 From: Zach White Date: Tue, 10 Nov 2020 07:21:59 -0800 Subject: [PATCH] Improve the QMK Lint workflow (#10909) * properly set the exit_code * handle the case where exit_code is greater than 255 --- .github/workflows/lint.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index b459973afa8..cd67de9d8be 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -46,6 +46,10 @@ jobs: echo "linting ${KB}" qmk lint --keyboard ${KB} && qmk info -l --keyboard ${KB} + exit_code=$(($exit_code + $?)) fi done + if [[ $exit_code -gt 255 ]]; then + exit 255 + fi exit $exit_code