Monitor Website Uptime using GitHub Actions
How to Monitor any website uptime using GitHub Actions for free
Create your own website monitor in seconds!
Step 1
Create a new repository, I’ll name it piyushmehta.com
Step 2
Create a directory named and workflows inside it .github/workflows
Step 3
Create a file with any name, I’ll name is uptime-monitor.yml
Step 4
Write the following in uptime-monitor.yaml
yml1name: Uptime Monitor23on:4 schedule:5 # Run every hour, You can choose your custom time6 - cron: '*/60 * * * *'78jobs:9 ping_site:10 runs-on: ubuntu-latest11 name: Uptime Check12 steps:13 - name: Ping Site14 uses: srt32/uptime@v0.215 with:16 url-to-hit: 'https://piyushmehta.com/' # Website whose uptime you want to track17 expected-statuses: '200'
Whenever your website is down, you’ll get a notification from GitHub.
Fin!