mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2026-02-04 16:45:52 +08:00
Add CLI file for local testing
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
This commit is contained in:
22
README.md
22
README.md
@@ -73,3 +73,25 @@ Additional information is available if debug logging is enabled:
|
||||
- Request Data (Body / Auth / Method)
|
||||
|
||||
To [enable debug logging in GitHub Actions](https://docs.github.com/en/actions/managing-workflow-runs/enabling-debug-logging) create a secret `ACTIONS_RUNNER_DEBUG` with a value of `true`
|
||||
|
||||
#### Local Usage
|
||||
|
||||
* You can execute this tool locally with the provided CLI `bin/http-action`.
|
||||
|
||||
```bash
|
||||
bin/http-action --help
|
||||
Positionals:
|
||||
url request URL [string]
|
||||
|
||||
Optionen:
|
||||
--help helper text [boolean]
|
||||
-d, --data request body data [string] [default: "{}"]
|
||||
-f, --files request files, send as multipart/form-data [string] [default: "{}"]
|
||||
--file single file, send as application/octet-stream [string]
|
||||
-h, --customHeaders custom request headers [string] [default: "{}"]
|
||||
-m, --method request method (GET, POST, PATCH, PUT, DELETE) [string] [default: "POST"]
|
||||
-t, --contentType request content type [string] [default: "application/json"]
|
||||
--bearerToken bearer token without Bearer prefix, added as
|
||||
Authorization header [string]
|
||||
--timeout request timeout [number] [default: 5000]
|
||||
```
|
||||
Reference in New Issue
Block a user