Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

n8ndontsleep

Keep a Hugging Face Space awake and post a daily screenshot to Discord.

What this does

This repository includes a GitHub Actions workflow that runs daily and:

  1. Opens your Hugging Face Space in a real browser via agent-browser
  2. Waits for expected text (Sign in) so the page is fully rendered
  3. Captures a screenshot (page.png)
  4. Posts the screenshot to Discord through a webhook

This gives both sleep prevention and visual uptime monitoring.

Workflow file

  • .github/workflows/keep-huggingface-awake.yml

Schedule:

  • cron: "0 0 * * *" (daily at 00:00 UTC)

Required GitHub Secrets

Add these in Settings → Secrets and variables → Actions:

  • HUGGING_FACE_SPACE_URL
  • DISCORD_WEBHOOK_URL

Notes

  • The workflow also supports manual runs via workflow_dispatch.
  • Update agent-browser wait --text "Sign in" to a page text that best matches your app.

About

I DON,T YOU TO SLEEP IDIIOT

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors