Skip to content

Commit d5dcfab

Browse files
committed
ci: ensure docs/v2/today.json is detected and committed
1 parent d11c851 commit d5dcfab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/cron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
git config --global user.name "github-actions[bot]"
4545
git config --global user.email "github-actions[bot]@users.noreply.github.com"
46-
FILES=$(git ls-files --modified --others --exclude-standard docs/v2/**/*.json || true)
46+
FILES=$(git diff --name-only --diff-filter=AM HEAD -- docs/v2 | grep '\.json$' || true)
4747
if [ -n "$FILES" ]; then
4848
git add $FILES
4949
git commit -m "chore: deploy JSON file to docs/v2 [skip ci]" || exit 0

0 commit comments

Comments
 (0)