From 351fd912d1eec396c76653c5b5f8d353a0111a80 Mon Sep 17 00:00:00 2001 From: Robert Waffen Date: Fri, 31 May 2024 14:19:28 +0200 Subject: [PATCH] update config --- .github/workflows/config_sync.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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