From d9d1f5aac98e08c5418a2c147c01cf7fd3c54ffa Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Tue, 27 May 2025 18:43:50 +0100 Subject: [PATCH] compound expression returns 1 if expression evaluates to 0 --- .github/actions/build/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index 82f49a49..72e0c6b4 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -78,11 +78,11 @@ runs: --log-format raw then echo "incrementing ok from $ok" - (( ok++ )) + ((++ok)) echo "incremented ok to $ok" else echo "incrementing error from $error" - (( error++ )) + ((++error)) echo "incremented error to $error" if [ -z "$keep_going_flag" ]; then echo "Failing fast!"