Skip to content

Commit

Permalink
ci: simplify action step
Browse files Browse the repository at this point in the history
return after failure, do not check again in another if statement.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and galak committed May 3, 2021
1 parent b669f0c commit 0b67f90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/coding_guidelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b67f90

Please sign in to comment.