Skip to content

Uptime Action

Actions
Ping an URL and check HTTP status code
v0.2.1
Latest
Star (34)

uptime

GitHub Action to check the status of endpoints. This action can be used to check a website is live after a deploy or on an ongoing basis via cron.

Inputs

url-to-hit

Required The url to hit

expected-statuses

Comma separated list of statuses that are okay. Defaults to "200"

Outputs

status

The status we got.

Example usage

  
on:
  schedule:
    - cron: '*/5 * * * *'

jobs:
  ping_site:
    runs-on: ubuntu-latest
    name: Ping the site
    steps:
    - name: Check the site
      id: hello
      uses: srt32/uptime@master
      with:
        url-to-hit: "https://example.com"
        expected-statuses: "200,301"

Uptime Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Ping an URL and check HTTP status code
v0.2.1
Latest

Uptime Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.