Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nev7n/wait_for_response
Github action to wait for a response
https://github.com/nev7n/wait_for_response
Last synced: 4 months ago
JSON representation
Github action to wait for a response
- Host: GitHub
- URL: https://github.com/nev7n/wait_for_response
- Owner: nev7n
- License: mit
- Created: 2020-03-10T11:22:36.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-02-07T08:47:57.000Z (almost 3 years ago)
- Last Synced: 2024-05-23T02:37:57.997Z (7 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 34
- Watchers: 2
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wait For Response docker action
This action makes HEAD requests to a given URL until the required response code is retrieved or the timeout is met. Initially created to allow test containers to startup before executing tests against them.
## Inputs
### `url`
The URL to poll. Default `"http://localhost/"`
### `responseCode`
Response code to wait for. Default `"200"`
### `timeout`
Timeout before giving up in milliseconds. Default `"30000"`
### `interval`
Interval between polling in ms. Default `"200"`
default: 200## Example usage
```
uses: nev7n/wait_for_response@v1
with:
url: 'http://localhost:8081/'
responseCode: 200
timeout: 2000
interval: 500
```