From d5dcfabb6696407747ee41cf969f78a38bb462e3 Mon Sep 17 00:00:00 2001 From: shimomo Date: Thu, 28 Aug 2025 12:49:46 +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 a0676198..9ae4b574 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