A GitHub action to make a POST call to any API
Go to file
Derek Kershner e48743e6c9 With build
2021-05-21 15:20:27 -07:00
.github/workflows With build 2021-05-21 15:20:27 -07:00
dist With build 2021-05-21 15:20:27 -07:00
src Simple POST api call action 2021-05-21 15:17:43 -07:00
.eslintignore Initial commit 2021-05-21 14:53:33 -07:00
.eslintrc Initial commit 2021-05-21 14:53:33 -07:00
.gitignore Initial commit 2021-05-21 14:53:33 -07:00
.prettierignore Initial commit 2021-05-21 14:53:33 -07:00
.prettierrc Initial commit 2021-05-21 14:53:33 -07:00
action.yml Fixed action to include headers 2021-05-21 15:18:24 -07:00
jest.config.js Initial commit 2021-05-21 14:53:33 -07:00
LICENSE Initial commit 2021-05-21 14:53:33 -07:00
package-lock.json Simple POST api call action 2021-05-21 15:17:43 -07:00
package.json Simple POST api call action 2021-05-21 15:17:43 -07:00
README.md Simple POST api call action 2021-05-21 15:17:43 -07:00
tsconfig.json Initial commit 2021-05-21 14:53:33 -07:00

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

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.