DEV Community

sidpalas
sidpalas

Posted on

Using GitHub Actions as a Makeshift Uptime Monitor (Video Tutorial // 3 min)

With just 15 lines of yaml we can configure GitHub Actions as a simple uptime monitor for a website:

name: Uptime Monitor
on:
  schedule:
    # Run every 10 minutes
    - cron: '*/10 * * * *'
jobs:
  ping_site:
    runs-on: ubuntu-latest
    name: Uptime Check
    steps:
    - name: Ping Site
      uses: srt32/uptime@v0.2
      with:
        url-to-hit: "https://devopsdirective.com/"
        expected-statuses: "200"

Watch the video for the full explanation and walkthrough!


What other non-standard use cases can you think of to do within GitHub actions (or other CI tool)? Leave a comment and let me know!

Top comments (0)