<!DOCTYPE html><htmlclass="default"lang="en"><head><metacharSet="utf-8"/><metahttp-equiv="x-ua-compatible"content="IE=edge"/><title>post-api-call-action</title><metaname="description"content="Documentation for post-api-call-action"/><metaname="viewport"content="width=device-width, initial-scale=1"/><linkrel="stylesheet"href="assets/style.css"/><linkrel="stylesheet"href="assets/highlight.css"/><scriptdefersrc="assets/main.js"></script><scriptasyncsrc="assets/search.js"id="tsd-search-script"></script><scriptasyncsrc="assets/navigation.js"id="tsd-nav-script"></script></head><body><script>document.documentElement.dataset.theme=localStorage.getItem("tsd-theme")||"os"</script><headerclass="tsd-page-toolbar"><divclass="tsd-toolbar-contents container"><divclass="table-cell"id="tsd-search"data-base="."><divclass="field"><labelfor="tsd-search-field"class="tsd-widget tsd-toolbar-icon search no-caption"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="#icon-search"></use></svg></label><inputtype="text"id="tsd-search-field"aria-label="Search"/></div><divclass="field"><divid="tsd-toolbar-links"></div></div><ulclass="results"><liclass="state loading">Preparing search index...</li><liclass="state failure">The search index is not available</li></ul><ahref="index.html"class="title">post-api-call-action</a></div><divclass="table-cell"id="tsd-widgets"><ahref="#"class="tsd-widget tsd-toolbar-icon menu no-caption"data-toggle="menu"aria-label="Menu"><svgwidth="16"height="16"viewBox="0 0 16 16"fill="none"><usehref="#icon-menu"></use></svg></a></div></div></header><divclass="container container-main"><divclass="col-content"><divclass="tsd-page-title"><h2>post-api-call-action</h2></div><divclass="tsd-panel tsd-typography"><aid="md:webhook-action"class="tsd-anchor"></a><h1><ahref="#md:webhook-action">webhook-action</a></h1><p>GitHub Action that sends a POST request of any kind. This is a thin wrapper around Axios.post.</p>
<aid="md:inputs"class="tsd-anchor"></a><h2><ahref="#md:inputs">Inputs</a></h2><aid="md:url"class="tsd-anchor"></a><h3><ahref="#md:url"><code>url</code></a></h3><p><strong>Required</strong>: URL to send post request to.</p>
<aid="md:data"class="tsd-anchor"></a><h3><ahref="#md:data"><code>data</code></a></h3><p>Optional: JSON string of data to pass into request. Default <code>"{}"</code>.</p>
<aid="md:headers"class="tsd-anchor"></a><h3><ahref="#md:headers"><code>headers</code></a></h3><p>Optional: JSON string of headers to pass into request. Default <code>"{}"</code>.</p>
<aid="md:params"class="tsd-anchor"></a><h3><ahref="#md:params"><code>params</code></a></h3><p>Optional: JSON string of query parameters to pass into request. Default <code>"{}"</code>.</p>
<aid="md:contributing"class="tsd-anchor"></a><h2><ahref="#md:contributing">Contributing</a></h2><p>All contributions are welcome, please open an issue or pull request.</p>
<p>To use this repository:</p>
<ol>
<li><code>npm i -g pnpm</code> (if don't have pnpm installed)</li>
<li><code>pnpm i</code></li>
<li><code>npx projen</code> (this will ensure everything is setup correctly, and you can run this command at any time)</li>
<li>Good to make your changes!</li>
<li>You can run <code>npx projen build</code> at any time to build the project.</li>