From 3c36bbedf359925ad4d275e343070c1bd09ecbc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20J=C3=A4hn?= Date: Mon, 15 Jul 2024 12:33:36 +0200 Subject: [PATCH] Fix git check for changes (#173) --- .github/workflows/update_datasets.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_datasets.yml b/.github/workflows/update_datasets.yml index 974cf3a1..13384d89 100644 --- a/.github/workflows/update_datasets.yml +++ b/.github/workflows/update_datasets.yml @@ -29,11 +29,11 @@ jobs: id: git-check run: | git diff - if [ -n "$(git status -s)" ]; then + if ! git diff --quiet; then echo "Changes detected" - echo "changes_detected=true" >> $GITHUB_ENV + echo "changes_detected=true" >> "$GITHUB_ENV" else - echo "changes_detected=false" >> $GITHUB_ENV + echo "changes_detected=false" >> "$GITHUB_ENV" - name: Commit changes if: env.changes_detected == 'true'