DEV Community

sidpalas
sidpalas

Posted on

3 1

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)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up