http-status-code
ActionsTags
(2)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:
urlThe url to check (e.g. "https://github.com")codeThe HTTP status code (eg: 200)timeoutTimeout before giving up in secondsintervalInterval between polling in secondsusernameBasic auth usernamepasswordBasic auth password
http-status-code 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.