Check an url for 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:
branches: [ main ]
tags: [ '*.*.*' ]
jobs:
build:
name: HTTP Status
runs-on: ubuntu-latest
steps:
# ... uses ....
- name: Check HTTP status
uses: gerdemann/http-status-code@1.0.0
with:
url: https://github.com
code: 200 # optional
timeout: 60 # optional
interval: 10 # optional
username: ${{ secrets.USERNAME }} # optional
password: ${{ secrets.PASSWORD }} # optional
# ... uses ....
The following configuration options are available:
url The url to check (e.g. “https://github.com”)code The HTTP status code (eg: 200)timeout Timeout before giving up in secondsinterval Interval between polling in secondsusername Basic auth usernamepassword Basic auth passwordWe use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.