Skip to content
server

GitHub Action

HTTP Status

v1 Latest version

HTTP Status

server

HTTP Status

Check HTTP status code of websites in your Github Actions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: HTTP Status

uses: lakuapik/gh-actions-http-status@v1

Learn more about this action in lakuapik/gh-actions-http-status

Choose a version

HTTP Status

Check your website http status codes in your Github Actions.

Usage

Create your Github Workflow configuration in .github/workflows/http_status.yml or similar.
Example: http_status.yml

name: Workflow for checking http status codes

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    # ... uses ....
    - name: Check http status code of production site
      uses: lakuapik/gh-actions-http-status@v1
      with:
        sites: '["http://github.com", "https://education.github.com"]'
        expected: '[301, 200]'
    # ... uses ....

Inputs

The following configuration options are available:

note: please make sure the JSON are valid.