echo "$COMMIT_MSG"

This commit is contained in:
probonopd authored and GitHub committed 2023-07-15 13:26:45 +02:00
1 parent 138cd5e06e
commit a2ec519570
1 file changed
+1 -1
+1 -1
View File
@@ -31,8 +31,8 @@ jobs:
fetch-depth: 0
- name: Auto-cancel builds triggered by branch updates
run: |
env | grep -i branch || true
COMMIT_MSG="$(git show -s --format=%s)"
echo "$COMMIT_MSG"
if [[ $COMMIT_MSG == 'Merge branch'* ]]; then
echo "The workflow will not run as the commit message starts with 'Merge branch'."
exit 0