-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (31 loc) · 1.09 KB
/
check_huggingface_space.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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