Skip to content

platformsh/gha-check-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Platform.sh Check a URL for a specific header response

Given a URL, performs a curl GET request and validates the server response against what we're expecting.

Inputs

  • test_url - REQUIRED. The URL we want to test for a response. Must be a URL, not just a domain.
  • http_response - Optional. The HTTP response status code we expect from the server. Defaults to 200
  • allow_insecure - Optional. Should we use the --insecure flag with curl when testing the URL? Defaults to false

Outputs

  • None currently.

Example Usage

    - name: 'Is our URL responding to requests?'
      id: test-url-for-response
      uses: platformsh/gha-check-url@main
      with:
        test_url: 'https://platform.sh/'

About

Checks a URL for a specific header response

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published