From 91e96520b476ba3144969c4e8a32a154a8bd44cb Mon Sep 17 00:00:00 2001 From: Ardian Luma Date: Mon, 23 May 2022 11:47:07 +0200 Subject: [PATCH] Make slackWebHook optional --- action.yml | 2 +- dist/action.js | 2 +- src/action.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 09f79e9..8bfb948 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,7 @@ inputs: required: true slackWebHook: description: 'Slack incoming webhook url' - required: true + required: false outputs: id: description: 'Deployment ID' diff --git a/dist/action.js b/dist/action.js index 34d02e5..b6b1361 100644 --- a/dist/action.js +++ b/dist/action.js @@ -11377,7 +11377,7 @@ async function run() { const project = core.getInput("project", { required: true, trimWhitespace: true }); const token = core.getInput("githubToken", { required: false, trimWhitespace: true }); const commitHash = core.getInput("commitHash", { required: false, trimWhitespace: true }); - const slackWebHook = core.getInput("slackWebHook", { required: true, trimWhitespace: true }); + const slackWebHook = core.getInput("slackWebHook", { required: false, trimWhitespace: true }); const slack = esm_default(slackWebHook); console.log("Waiting for Pages to finish building..."); let lastStage = ""; diff --git a/src/action.ts b/src/action.ts index b0449a7..6221553 100644 --- a/src/action.ts +++ b/src/action.ts @@ -19,7 +19,7 @@ export default async function run() { const project = core.getInput('project', { required: true, trimWhitespace: true }); const token = core.getInput('githubToken', { required: false, trimWhitespace: true }); const commitHash = core.getInput('commitHash', { required: false, trimWhitespace: true }); - const slackWebHook = core.getInput('slackWebHook', { required: true, trimWhitespace: true }); + const slackWebHook = core.getInput('slackWebHook', { required: false, trimWhitespace: true }); const slack = SlackNotify(slackWebHook); console.log('Waiting for Pages to finish building...');