Skip to content

Commit

Permalink
Error
Browse files Browse the repository at this point in the history
  • Loading branch information
maor-rozenfeld committed Mar 25, 2024
1 parent a0edc72 commit 994eab8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
# Match regex title with the title
if grep -qP -- "$TITLE_REGEX" <<< "$TITLE"; then
echo "Title matches regex: $TITLE_REGEX"
echo "verdict=Pass" >> $GITHUB_OUTPUT
else
echo "Error: Title does not match regex: $TITLE_REGEX" >&2
echo "$ERROR_MESSAGE" >&2
echo "verdict=$(echo $ERROR_MESSAGE)" >> $GITHUB_OUTPUT
echo "Title does not match regex: $TITLE_REGEX" >&2
echo "::error title=PR Title is invalid::$ERROR_MESSAGE"
exit 1
fi

0 comments on commit 994eab8

Please sign in to comment.