File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments