name: HF Space Ping - EmCoder API & UI on: schedule: - cron: '0 0 * * *' workflow_dispatch: jobs: ping: runs-on: ubuntu-latest steps: - name: Wake up EmCoder Model API run: | STATUS=$(curl -L -s -o /dev/null -w "%{http_code}" \ --retry 5 \ --retry-delay 15 \ --retry-all-errors \ "https://yezdata-emcoder-api-ui.hf.space/health") echo "EmCoder Status: $STATUS" if [ "$STATUS" -ne 200 ]; then exit 1; fi