diff --git a/.github/workflows/mergify-ready.yml b/.github/workflows/mergify-ready.yml index e707840c6342..86439df95f47 100644 --- a/.github/workflows/mergify-ready.yml +++ b/.github/workflows/mergify-ready.yml @@ -111,7 +111,7 @@ jobs: - name: Check for fixup commits id: fixup-commits run: | - if [[ $(git rev-list "$BASE_SHA".."$HEAD_SHA" --grep="^(fixup|amend|squash)! " | wc -l) -eq 0 ]]; then + if [[ $(git rev-list "$BASE_SHA".."$HEAD_SHA" --grep="^\(fixup\|amend\|squash\)! " | wc -l) -eq 0 ]]; then echo "No fixup/amend/squash commits found in commit history" else echo "fixup/amend/squash commits found in commit history"