GitHub Action that sends a POST request of any kind. This is a thin wrapper around Axios.post.
Required: URL to send post request to.
Optional: JSON string of data to pass into request. Default "{}"
.
Optional: JSON string of headers to pass into request. Default "{}"
.
Optional: JSON string of query parameters to pass into request. Default "{}"
.
uses: dkershner6/post-api-call-action@v1
with:
url: ${{ secrets.API_URL }}
data: "{\"command\": \"publish\"}"
headers: "{\"Authorization\": \"Bearer ${{ secrets.API_KEY }}\"}"
params: "{\"content\": \"Test Content\"}"
Feel free to open issues or submit PRs.