post-api-call/.old
2023-12-30 19:05:12 -08:00
..
.github/workflows chore: project created with projen 2023-12-30 19:05:12 -08:00
dist chore: project created with projen 2023-12-30 19:05:12 -08:00
src chore: project created with projen 2023-12-30 19:05:12 -08:00
.eslintignore chore: project created with projen 2023-12-30 19:05:12 -08:00
.eslintrc chore: project created with projen 2023-12-30 19:05:12 -08:00
.gitignore chore: project created with projen 2023-12-30 19:05:12 -08:00
.prettierignore chore: project created with projen 2023-12-30 19:05:12 -08:00
.prettierrc chore: project created with projen 2023-12-30 19:05:12 -08:00
action.yml chore: project created with projen 2023-12-30 19:05:12 -08:00
jest.config.js chore: project created with projen 2023-12-30 19:05:12 -08:00
LICENSE chore: project created with projen 2023-12-30 19:05:12 -08:00
package-lock.json chore: project created with projen 2023-12-30 19:05:12 -08:00
package.json chore: project created with projen 2023-12-30 19:05:12 -08:00
README.md chore: project created with projen 2023-12-30 19:05:12 -08:00
tsconfig.json chore: project created with projen 2023-12-30 19:05:12 -08:00

webhook-action

GitHub Action that sends a POST request of any kind. This is a thin wrapper around Axios.post.

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 "{}".

params

Optional: JSON string of query parameters to pass into request. Default "{}".

Example usage

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\"}"

Contributing

Feel free to open issues or submit PRs.