Skip to content

Commit a26a12a

Browse files
committed
cut-release: poll HF model card inside the verify retry loop (Hub propagation lag)
1 parent 47fc2fe commit a26a12a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/cut-release.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -153,13 +153,13 @@ jobs:
153153
for i in $(seq 1 12); do
154154
PY=$(curl -s https://pypi.org/pypi/von-sdk/json | python3 -c 'import json,sys;print(json.load(sys.stdin)["info"]["version"])' || true)
155155
NPM=$(npm view von-sdk version 2>/dev/null || true)
156-
echo "attempt $i: pypi=$PY npm=$NPM"
157-
[ "$PY" = "$V" ] && [ "$NPM" = "$V" ] && break
156+
HF=$(curl -s -H 'Cache-Control: no-cache' https://huggingface.co/wfzyx/von/raw/main/README.md | grep -m1 -oE 'von-sdk>=[0-9.]+' | cut -d= -f3 || true)
157+
echo "attempt $i: pypi=$PY npm=$NPM hf=$HF"
158+
[ "$PY" = "$V" ] && [ "$NPM" = "$V" ] && [ "$HF" = "$V" ] && break
158159
sleep 20
159160
done
160161
[ "$PY" = "$V" ] || { echo "::error::PyPI serves $PY, expected $V"; exit 1; }
161162
[ "$NPM" = "$V" ] || { echo "::error::npm serves $NPM, expected $V"; exit 1; }
162-
HF=$(curl -s https://huggingface.co/wfzyx/von/raw/main/README.md | grep -m1 -oE 'von-sdk>=[0-9.]+' | cut -d= -f3)
163163
[ "$HF" = "$V" ] || { echo "::error::HF model card pins von-sdk>=$HF, expected $V"; exit 1; }
164164
{
165165
echo "### Released v$V"

0 commit comments

Comments
 (0)