ci: simplify action step

return after failure, do not check again in another if statement.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2021-04-30 22:11:54 -04:00 committed by Kumar Gala
commit 0b67f90b2d

View file

@ -52,8 +52,5 @@ jobs:
errors="${errors//$'\n'/'%0A'}"
errors="${errors//$'\r'/'%0D'}"
echo "::error file=output.txt::$errors"
exit=1
fi
if [ ${exit} == 1 ]; then
exit 1;
exit 1;
fi