diff --git a/.github/workflows/check-for-updates.yml b/.github/workflows/check-for-updates.yml index 834b2e1..db97ff6 100644 --- a/.github/workflows/check-for-updates.yml +++ b/.github/workflows/check-for-updates.yml @@ -70,7 +70,7 @@ jobs: # Check for changes in the news.d directory git add -A - news_files=$(git diff --name-only --diff-filter=A | grep '^news.d/.*\.md' || true) + news_files=$(git diff --cached --name-only --diff-filter=A | grep '^news.d/.*\.md' || true) if [ -z "$news_files" ]; then echo "No new file in news.d, failing the job."