mirror of
https://github.com/joelwmale/webhook-action.git
synced 2026-09-01 23:10:44 +08:00
Allow optional headers & body
This commit is contained in:
+2
-2
@@ -3,8 +3,8 @@ import { http } from './http';
|
||||
|
||||
async function run() {
|
||||
const url = core.getInput('url');
|
||||
const headers = core.getInput('headers') ?? '';
|
||||
const body = core.getInput('body') ?? '';
|
||||
const headers = core.getInput('headers') ?? null;
|
||||
const body = core.getInput('body') ?? null;
|
||||
|
||||
// initial info
|
||||
core.info(`Sending webhook request to ${url}`);
|
||||
|
||||
Reference in New Issue
Block a user