Skip to content
loading...

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

sidpalas profile image sidpalas twitter logo github logo ・1 min read

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!

twitter logo DISCUSS
Discussion
markdown guide
Classic DEV Post from Aug 6 '19

What to put in your portfolio as a beginner web dev

sidpalas profile image
Helping software engineers level up their DevOps and Cloud Infrastructure skills @ devopsdirective.com