Skip to content

Check your website http status codes in your Github Actions.

License

Notifications You must be signed in to change notification settings

lakuapik/gh-actions-http-status

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.