Use COMMIT_MSG

This commit is contained in:
probonopd authored and GitHub committed 2023-07-15 13:47:21 +02:00
1 parent ea6ab95eba
commit eaf2dc5ff2
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ jobs:
run: |
COMMIT_MSG="$(git show -s --format=%s)"
echo "$COMMIT_MSG"
if [[ $variable =~ ^Merge[[:space:]][[:xdigit:]]{40}[[:space:]]into[[:space:]][[:xdigit:]]{40}$ ]]; then
if [[ "$COMMIT_MSG" =~ ^Merge[[:space:]][[:xdigit:]]{40}[[:space:]]into[[:space:]][[:xdigit:]]{40}$ ]]; then
echo "The workflow will not run as it was triggered by 'Update branch'."
exit 78 # Skipped
else