Skip to content

Commit

Permalink
Make slackWebHook optional
Browse files Browse the repository at this point in the history
  • Loading branch information
arddluma committed May 23, 2022
1 parent 7368aae commit 91e9652
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ inputs:
required: true
slackWebHook:
description: 'Slack incoming webhook url'
required: true
required: false
outputs:
id:
description: 'Deployment ID'
Expand Down
2 changes: 1 addition & 1 deletion dist/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
Expand Down

0 comments on commit 91e9652

Please sign in to comment.