Skip to content

Check Hugging Face Space Status #42

Check Hugging Face Space Status

Check Hugging Face Space Status #42

name: Check Hugging Face Space Status
on:
workflow_dispatch:
inputs:
name:
description: 'Check Hugging Face Space Status'
required: false
default: ''
schedule:
- cron: '0 13 * * *' # every day at 8:00 AM EST (13:00 UTC)
jobs:
check_huggingface_space:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install huggingface_hub
- name: Check Hugging Face Space
run: |
python .github/scripts/check_huggingface_space.py \
--name richiehakim/ROICaT_tracking \
--token ${{ secrets.HUGGINGFACE_SPACE_ROICAT_TRACKING_TOKEN }} \
--restart_space \
--error_on_failure