Skip to content

Commit

Permalink
🐛 Force failure if gitmoji not title prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor committed May 7, 2024
1 parent 57215d8 commit f6bd4eb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ runs:
gitmojis=$(cat gitmojis.txt)
gitmoji=$(echo "${{ github.event.pull_request.title }}" | cut -d ' ' -f1)
if [[ ! $gitmojis == *"$gitmoji"* ]]; then
echo "Invalid gitmoji prefix in PR title. Please use a valid gitmoji prefix."
echo "Cannot create label as gitmoji not prefixed in PR title"
exit 1
else
echo "gitmoji=$gitmoji" >> $GITHUB_OUTPUT
fi
Expand Down Expand Up @@ -61,4 +62,4 @@ runs:
branding:
icon: 'check-circle'
color: 'green'
color: 'green'

0 comments on commit f6bd4eb

Please sign in to comment.