diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 86e5457cf1d..b387b8f06ba 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -27,7 +27,7 @@ jobs: git add package.json git -c user.name="GitHub" -c user.email="noreply@github.com" commit --author="github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" -m"Fix package.json" | sed -n 1p || true git push - if [[ $(git diff --stat HEAD~~ HEAD) -eq 0 || $(git status --porcelain | tee /dev/stderr | head -c1 | wc -c) -ne 0 || $(git clean -dffx | tee /dev/stderr | head -c1 | wc -c) -ne 0 ]]; then + if [[ $(git diff --stat "HEAD~~" "HEAD") -eq 0 || $(git status --porcelain | tee /dev/stderr | head -c1 | wc -c) -ne 0 || $(git clean -dffx | tee /dev/stderr | head -c1 | wc -c) -ne 0 ]]; then exit 1 fi fi