From be5e41c2eea1f4962e355aedf7adf7d9824de390 Mon Sep 17 00:00:00 2001 From: shimomo Date: Thu, 28 Aug 2025 17:34:57 +0900 Subject: [PATCH] ci: ensure docs/v2/today.json is detected and committed --- .github/workflows/cron.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index a06761980..9ae4b574b 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -43,7 +43,7 @@ jobs: run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - FILES=$(git ls-files --modified --others --exclude-standard docs/v2/**/*.json || true) + FILES=$(git diff --name-only --diff-filter=AM HEAD -- docs/v2 | grep '\.json$' || true) if [ -n "$FILES" ]; then git add $FILES git commit -m "chore: deploy JSON file to docs/v2 [skip ci]" || exit 0