From 049bd117d896b6c1816a4f3634f1966391369646 Mon Sep 17 00:00:00 2001 From: Paul Ganssle Date: Mon, 23 Sep 2024 20:51:28 -0700 Subject: [PATCH] fixup! Add automatic PR action --- .github/workflows/check-for-updates.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."