Anshul Prasad commited on
Commit
aa24937
·
1 Parent(s): a8a2914

Prints the HTTP status code for each attempt — easier to debug in Action logs

Browse files
.github/workflows/space-keepalive.yml CHANGED
@@ -12,8 +12,13 @@ jobs:
12
  - name: Ping Space (3 retries)
13
  run: |
14
  for i in 1 2 3; do
15
- curl -fsS -o /dev/null -L 'https://huggingface.co/spaces/AnshulPrasad/transcript-rag-summarizer' && exit 0
 
 
 
 
 
16
  sleep 15
17
  done
18
  echo "All attempts failed" >&2
19
- exit 1
 
12
  - name: Ping Space (3 retries)
13
  run: |
14
  for i in 1 2 3; do
15
+ STATUS=$(curl -o /dev/null -s -w "%{http_code}" -L 'https://huggingface.co/spaces/AnshulPrasad/transcript-rag-summarizer')
16
+ echo "Attempt $i: HTTP $STATUS"
17
+ if [ "$STATUS" -eq 200 ]; then
18
+ echo "Space is awake!"
19
+ exit 0
20
+ fi
21
  sleep 15
22
  done
23
  echo "All attempts failed" >&2
24
+ exit 1