CHATSAM / .github /workflows /keep-alive.yml
chanfasf's picture
add: keep-alive workflow to prevent HuggingFace Space sleeping
2446e8d
Raw
History Blame Contribute Delete
482 Bytes
name: Keep HuggingFace Space Alive
on:
schedule:
- cron: '0 */12 * * *'
workflow_dispatch:
jobs:
keep-alive:
runs-on: ubuntu-latest
steps:
- name: Ping HuggingFace Space
run: |
curl -s -o /dev/null -w "%{http_code}" https://huggingface.co/spaces/chanfasf/CHATSAM || true
curl -s -o /dev/null -w "%{http_code}" https://chanfasf-chatsam.hf.space || true
- name: Log status
run: echo "Keep-alive ping sent at $(date)"