From 5abf4d792d420f42fc3d94d998969fe2829808ea Mon Sep 17 00:00:00 2001 From: Chris Reynolds Date: Thu, 18 Jul 2024 14:32:33 -0600 Subject: [PATCH] don't say changes were detected if they weren't --- .github/workflows/phpcbf.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpcbf.yml b/.github/workflows/phpcbf.yml index bacaccfe..cac99a53 100644 --- a/.github/workflows/phpcbf.yml +++ b/.github/workflows/phpcbf.yml @@ -25,10 +25,11 @@ jobs: git config --global user.name "Pantheon Robot" DIFF=$(git diff-index --quiet HEAD || echo "true") if [ "$DIFF" == "true" ]; then + CHANGES_DETECTED=true git add *.php git commit -m "PHPCBF: Fix coding standards" --no-verify - git push origin ${{ github.event.pull_request.head.ref }} - echo "changes_detected=true" >> $GITHUB_ENV + git push origin ${{ github.event.pull_request.head.ref }} || CHANGES_DETECTED=false + echo "changes_detected=$CHANGES_DETECTED" >> $GITHUB_ENV else echo "changes_detected=false" >> $GITHUB_ENV fi