SCGR commited on
Commit
f39d355
·
1 Parent(s): cebcc6b
Files changed (1) hide show
  1. .github/workflows/sync-to-hub.yml +3 -3
.github/workflows/sync-to-hub.yml CHANGED
@@ -32,10 +32,10 @@ jobs:
32
  test -n "$HF_API_KEY" || (echo "Missing GitHub secret HF_API_KEY" && exit 1)
33
  echo "WHOAMI:"
34
  curl -sS -H "Authorization: Bearer $HF_API_KEY" https://huggingface.co/api/whoami-v2 || exit 1
35
- echo; echo "Check space URL:"
36
- curl -sS -o /dev/null -w "HTTP %{http_code}\n" \
37
  -H "Authorization: Bearer $HF_API_KEY" \
38
- https://huggingface.co/spaces/${HF_USERNAME}/${SPACE_NAME}
39
 
40
  - name: Test git auth to HF Space
41
  env:
 
32
  test -n "$HF_API_KEY" || (echo "Missing GitHub secret HF_API_KEY" && exit 1)
33
  echo "WHOAMI:"
34
  curl -sS -H "Authorization: Bearer $HF_API_KEY" https://huggingface.co/api/whoami-v2 || exit 1
35
+ echo; echo "Check space exists (needs auth for private spaces):"
36
+ curl -sS -D - -o /dev/null \
37
  -H "Authorization: Bearer $HF_API_KEY" \
38
+ https://huggingface.co/api/spaces/${HF_USERNAME}/${SPACE_NAME}
39
 
40
  - name: Test git auth to HF Space
41
  env: