Skip to content

Github Action to validate and check URL response status and code

License

Notifications You must be signed in to change notification settings

gpuliyar/check-url-action

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

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check URL Status Action

Github Action to validate and check URL response status and code. The Action is useful if a developer wants to check an URL or API before they want to trigger a integration testing job.

Inputs

Name Description Required
url URL path to verify true
init-delay Initial delay before probing the URL (in milliseconds). Max allowed initial delay is 30s. Deafault value is 0s false
retry-count Number of retries permitted. Max allowed retry is 5. Default value is 0 false
retry-delay Amount of time to wait before retrying the activity (in milliseconds). Max allowed delay is 30s. Default value is 0s false
codes-allowed List of HTTP response codes that are allowed. Separate them by ',' (commas). Default value is 200 status code false

Example Usage

jobs:
  check-url-status:
    runs-on: ubuntu-latest
    steps:
    - name: Check URL Status
        uses: gpuliyar/[email protected]
        with:
          # URL path to verify (Mandatory)
          url: https://approval.example.org/berry

          # Initial delay before probing the URL (in milliseconds) (Optional)
          # default value 0 - no initial delay
          # Max allowed initial delay is 30s
          init-delay: 1000

          # Number of retries permitted. 
          # Max allowed retry is 5 (Optional)
          # default value 0 - no retries
          retry-count: 3

          # Amount of time to wait before retrying the activity (in milliseconds) (Optional)
          # default value 0 - no delay
          # Max allowed retry delay is 30s
          retry-delay: 1000

          # List of HTTP response codes that are acceptable/allowed. Separate them by ',' (commas) (Optional)
          # default value 200
          codes-allowed: 200,201,202

About

Github Action to validate and check URL response status and code

Resources

License

Stars

Watchers

Forks

Packages

No packages published