itsgotime.mp4
This template runs site checks in GitHub Actions and publishes a Next.js dashboard to GitHub Pages.
How to use:
- Edit
monitors.yamlto list your targets. - Replace module path in
go.modif you want. - Create a repository on GitHub and push these files.
- Run the
uptime-checkworkflow from Actions (or wait for the cron). - After the workflow creates the
gh-pagesbranch, go to Settings → Pages and set source togh-pagesbranch (root). - Visit
https://<username>.github.io/<repo>/to see the dashboard.
To test locally:
- Install Go 1.21+
- Run
go run ./cmd/checker - This writes
status.jsonandhistory.jsonto repo root and tries to writegh-pages/history.jsonifgh-pagesexists. - Open
web/index.htmlin a browser (or serve it with a simple static server).
Notes:
- The workflow commits to
gh-pagesonly when changes exist. - Default schedule is every minute. Adjust cron in
.github/workflows/check.ymlif you want lower frequency.