Skip to content

gerdemann/http-status-code

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

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Status Code

Check an url for 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:
    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 ....

Inputs

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 seconds
  • interval Interval between polling in seconds
  • username Basic auth username
  • password Basic auth password

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages