Skip to content

Commit 8ba264f

Browse files
dcampbell24sylvestre
authored andcommitted
Use the env variable STYLE_FAIL_ON_FAULT.
1 parent db332e5 commit 8ba264f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/code-quality.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
## VARs setup
4747
outputs() { step_id="${{ github.action }}"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
4848
# failure mode
49-
unset FAIL_ON_FAULT ; case '${{ env.STYLE_FAIL_ON_FAULT }}' in
49+
unset FAIL_ON_FAULT ; case "$STYLE_FAIL_ON_FAULT" in
5050
''|0|f|false|n|no|off) FAULT_TYPE=warning ;;
5151
*) FAIL_ON_FAULT=true ; FAULT_TYPE=error ;;
5252
esac;
@@ -93,7 +93,7 @@ jobs:
9393
## VARs setup
9494
outputs() { step_id="${{ github.action }}"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
9595
# failure mode
96-
unset FAIL_ON_FAULT ; case '${{ env.STYLE_FAIL_ON_FAULT }}' in
96+
unset FAIL_ON_FAULT ; case "$STYLE_FAIL_ON_FAULT" in
9797
''|0|f|false|n|no|off) FAULT_TYPE=warning ;;
9898
*) FAIL_ON_FAULT=true ; FAULT_TYPE=error ;;
9999
esac;
@@ -133,7 +133,7 @@ jobs:
133133
## VARs setup
134134
outputs() { step_id="${{ github.action }}"; for var in "$@" ; do echo steps.${step_id}.outputs.${var}="${!var}"; echo "${var}=${!var}" >> $GITHUB_OUTPUT; done; }
135135
# failure mode
136-
unset FAIL_ON_FAULT ; case '${{ env.STYLE_FAIL_ON_FAULT }}' in
136+
unset FAIL_ON_FAULT ; case "$STYLE_FAIL_ON_FAULT" in
137137
''|0|f|false|n|no|off) FAULT_TYPE=warning ;;
138138
*) FAIL_ON_FAULT=true ; FAULT_TYPE=error ;;
139139
esac;

0 commit comments

Comments
 (0)