diff --git a/.github/workflows/update-genshin.yml b/.github/workflows/update-genshin.yml index 8e2b1c67754..084a2257e38 100644 --- a/.github/workflows/update-genshin.yml +++ b/.github/workflows/update-genshin.yml @@ -67,10 +67,9 @@ jobs: echo "$COMMITS" | while read -r COMMIT MESSAGE; do VERSION=$(echo "$MESSAGE" | sed -n 's/.*v\([0-9]\+\.[0-9]\+\)$/\1/p') - gh api repos/dvaJi/genshin-data/git/trees/$COMMIT \ + gh api 'repos/dvaJi/genshin-data/git/trees/$COMMIT?recursive="1"' \ --jq '.tree[] | select(.type == "blob") | .path' > changed_files.txt git clone https://github.com/dvaJi/genshin-data.git - ls -l bun run ./scripts/workflow/update_file.ts "$VERSION" echo "$COMMIT" > .last_processed_commit git add .