Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Oct 28, 2024
1 parent 19970f4 commit ed572b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/scripts/hf_gen_meta_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ if jq --exit-status . "${TMPDIR}/METADATA.json.bak" >/dev/null 2>&1; then
cat "${TMPDIR}/METADATA.json.bak" | jq -s '.' | jq 'walk(if type == "string" and . == "null" then "" else . end)' > "${TMPDIR}/METADATA.json"
#Sync
pushd "${HF_REPO_LOCAL}" >/dev/null 2>&1
git fetch origin main ; git sparse-checkout add "./${HOST_TRIPLET}"
git sparse-checkout disable
git sparse-checkout set --no-cone --sparse-index "${HOST_TRIPLET}/*.json" "${HOST_TRIPLET}/*.log" "${HOST_TRIPLET}/*.png" "${HOST_TRIPLET}/*.temp" "${HOST_TRIPLET}/*.toml" "${HOST_TRIPLET}/*.tmp" "${HOST_TRIPLET}/*.txt" "${HOST_TRIPLET}/*.yaml" "${HOST_TRIPLET}/*.yml"
git checkout ; ls -lah "." "./${HOST_TRIPLET}"
find "${HF_REPO_LOCAL}" -type f -size -3c -delete
rm "./${HOST_TRIPLET}/METADATA.json.tmp" 2>/dev/null
cp "${TMPDIR}/METADATA.json" "./${HOST_TRIPLET}/METADATA.json"
Expand Down

0 comments on commit ed572b3

Please sign in to comment.