Check Hugging Face Space Status #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |