From e83833dd228e95c864cc9b7d85ac300064792dc4 Mon Sep 17 00:00:00 2001 From: TMW <23580812+codeshell@users.noreply.github.com> Date: Sun, 16 Aug 2026 14:48:09 +0200 Subject: [PATCH] Fix change detection logic in workflow script git diff does _not_ detect new files unless explicitely told so (e.g. git diff --exit-code --untracked-files=all) However, git status --porcelain is a more robust check for changes. --- .github/workflows/fetch-and-regenerate-lists.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/fetch-and-regenerate-lists.yml b/.github/workflows/fetch-and-regenerate-lists.yml index e4f0adc..55c0f55 100644 --- a/.github/workflows/fetch-and-regenerate-lists.yml +++ b/.github/workflows/fetch-and-regenerate-lists.yml @@ -42,7 +42,7 @@ jobs: - name: Check for Changes id: check_changes run: | - if [[ -n "$(git diff --exit-code)" ]]; then + if [[ -z "$(git status --porcelain)" ]]; then echo "Changes detected." echo "has_changes=true" >> "$GITHUB_OUTPUT" else