Spaces:
Running
Running
hf config
Browse files
.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
|
36 |
-
curl -sS -o /dev/null
|
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:
|