diff --git a/.github/workflows/config_sync.yml b/.github/workflows/config_sync.yml index bcd53e8..916ad6d 100644 --- a/.github/workflows/config_sync.yml +++ b/.github/workflows/config_sync.yml @@ -29,11 +29,10 @@ jobs: - name: Check for changes id: changes run: | - git status - if git status --porcelain | grep -q .; then - echo "has_changes=false" >> $GITHUB_OUTPUT - else + if [ -n "$(git status --porcelain)" ]; then echo "has_changes=true" >> $GITHUB_OUTPUT + else + echo "has_changes=false" >> $GITHUB_OUTPUT fi - name: Commit changes