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: email@example.com 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!