From 7e122ec90c189d2a6e3891e765c8dab4c06b6b47 Mon Sep 17 00:00:00 2001 From: Ludovic Malot Date: Tue, 27 Aug 2024 14:33:29 +0800 Subject: [PATCH] added recursive path --- .github/workflows/update-genshin.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 .