Skip to content

Commit

Permalink
patch: fix continue_on_error failure logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Fields committed Sep 24, 2021
1 parent 117dbf0 commit a3f4f21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Expand Up @@ -308,10 +308,10 @@ function getInputNumber(id, required) {
}
function getInputBoolean(id) {
var input = core_1.getInput(id);
if (!['true', 'false'].includes(id.toLowerCase())) {
if (!['true', 'false'].includes(input.toLowerCase())) {
throw "Input " + id + " only accepts boolean values. Received " + input;
}
return id.toLowerCase() === 'true';
return input.toLowerCase() === 'true';
}
function retryWait() {
return __awaiter(this, void 0, void 0, function () {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Expand Up @@ -45,10 +45,10 @@ function getInputNumber(id: string, required: boolean): number | undefined {
function getInputBoolean(id: string): Boolean {
const input = getInput(id);

if (!['true','false'].includes(id.toLowerCase())) {
if (!['true','false'].includes(input.toLowerCase())) {
throw `Input ${id} only accepts boolean values. Received ${input}`;
}
return id.toLowerCase() === 'true'
return input.toLowerCase() === 'true'
}

async function retryWait() {
Expand Down

0 comments on commit a3f4f21

Please sign in to comment.