Check your website http status codes in your Github Actions.
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: dhipin/actions-http-status@v1
with:
sites: '["http://github.com", "https://education.github.com"]'
expected: '[301, 200]'
# ... uses ....
The following configuration options are available:
sites
List website urls in JSON (eg: ["http://github.com", "https://education.github.com"])expected
List expected HTTP status codes in JSON (eg: [301, 200])
note: please make sure the JSON are valid.