Skip to content

Commit d1a3d1a

Browse files
committed
update workflow
Signed-off-by: Jakub Jarosz <[email protected]>
1 parent 18c5613 commit d1a3d1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/mend.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
echo "mend-scan-result=$(echo $exit_code)" >> $GITHUB_OUTPUT
116116
echo -e "\nEXIT CODE is: $exit_code\n"
117117
118-
if (( exit_code == 254 )); then
118+
if (( exit_code != 254 )); then
119119
printf "\nMend scan detected problems.\n"
120120
exit 0
121121
# exit 254
@@ -148,10 +148,10 @@ jobs:
148148
run: |
149149
echo -e "\nEXIT CODE is: ${{ steps.scan.outputs.mend-scan-result }}\n"
150150
151-
if (( ${{ steps.scan.outputs.mend-scan-result }} == 254 )); then
151+
if (( ${{ steps.scan.outputs.mend-scan-result }} != 254 )); then
152152
printf "\nMend scan detected problems.\n"
153-
exit 254
153+
exit ${{ steps.scan.outputs.mend-scan-result }}
154154
else
155-
printf "\nMend scan completed successfully. Exiting with code = 0\n"
156-
exit 0
155+
printf "\nMend scan completed successfully.\n"
156+
exit ${{ steps.scan.outputs.mend-scan-result }}
157157
fi

0 commit comments

Comments
 (0)