Allow optional headers & body

This commit is contained in:
Joel Male
2020-08-26 10:41:58 +10:00
parent 5be5ae3f9a
commit d3ff660fa9
12 changed files with 22 additions and 16 deletions
+2 -2
View File
@@ -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}`);