diff --git a/.github/workflows/check-for-updates.yml b/.github/workflows/check-for-updates.yml index cf309b6..d83bc96 100644 --- a/.github/workflows/check-for-updates.yml +++ b/.github/workflows/check-for-updates.yml @@ -69,6 +69,7 @@ jobs: echo "Test" > news.d/2024c.md # 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) if [ -z "$news_files" ]; then @@ -90,7 +91,6 @@ jobs: echo "TZDATA_VERSION=$TZDATA_VERSION" >> $GITHUB_ENV echo "TZDATA_NEWS=$TZDATA_NEWS" >> $GITHUB_ENV - git add . git commit -m "Update tzdata to version $TZDATA_VERSION" git push origin HEAD