A GitHub action to make a POST call to any API
Go to file
2021-05-22 09:18:10 -07:00
.github/workflows With build 2021-05-21 15:20:27 -07:00
dist Adding url to log 2021-05-22 09:18:03 -07:00
src Adding url to log 2021-05-22 09:18:03 -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 Changed branding 2021-05-21 15:23:57 -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 Adding url to log 2021-05-22 09:18:03 -07:00
README.md Update README.md 2021-05-21 15:26:03 -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': '${{ secrets.API_KEY }}'}"

Contributing

Feel free to open issues or submit PRs.