mirror of
https://github.com/dkershner6/post-api-call-action.git
synced 2024-11-15 18:03:50 +08:00
33 lines
566 B
Markdown
33 lines
566 B
Markdown
# webhook-action
|
|
|
|
GitHub Action that sends a POST request of any kind.
|
|
|
|
## Inputs
|
|
|
|
### `url`
|
|
|
|
**Required**: URL to send post request to.
|
|
|
|
### `data`
|
|
|
|
Optional: JSON string of data to pass into request. Default `"{}"`.
|
|
|
|
### `headers`
|
|
|
|
Optional: JSON string of headers to pass into request. Default `"{}"`.
|
|
|
|
|
|
## Example usage
|
|
|
|
```yaml
|
|
uses: dkershner6/post-api-call-action@v1.0.0
|
|
with:
|
|
url: ${{ secrets.API_URL }}
|
|
data: "{'command': 'publish'}"
|
|
headers: "{'Authorization': '${{ secrets.API_KEY }}'}"
|
|
```
|
|
|
|
|
|
## Contributing
|
|
|
|
Feel free to open issues or submit PRs. |