From abfe1dd19a15b1a779eccb6ef6be15e695597166 Mon Sep 17 00:00:00 2001 From: George Taylor Date: Tue, 7 May 2024 21:28:10 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Force=20failure=20if=20gitmoji?= =?UTF-8?q?=20not=20title=20prefix=20(#7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 75301cf..9cb250f 100644 --- a/action.yml +++ b/action.yml @@ -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 @@ -61,4 +62,4 @@ runs: branding: icon: 'check-circle' - color: 'green' \ No newline at end of file + color: 'green'