A GitHub action to make a POST call to any API
Go to file
2021-05-22 10:40:10 -07:00
.github/workflows With build 2021-05-21 15:20:27 -07:00
dist Update README, add test for parsing 2021-05-22 10:40:10 -07:00
src Update README, add test for parsing 2021-05-22 10:40:10 -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 Update README, add test for parsing 2021-05-22 10:40:10 -07:00
.prettierrc Initial commit 2021-05-21 14:53:33 -07:00
action.yml Fixed the action yaml to correct file 2021-05-22 09:25:41 -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 Update README, add test for parsing 2021-05-22 10:40:10 -07:00
README.md Update README, add test for parsing 2021-05-22 10:40:10 -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
with:
  url: ${{ secrets.API_URL }}
  data: "{\"command\": \"publish\"}"
  headers: "{\"Authorization\": \"Bearer ${{ secrets.API_KEY }}\"}"

Contributing

Feel free to open issues or submit PRs.