Skip to content

Commit

Permalink
Fix git check for changes (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaehn authored Jul 15, 2024
1 parent f6df356 commit 3c36bbe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/update_datasets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 3c36bbe

Please sign in to comment.