diff --git a/dist/index.js b/dist/index.js index 35471d7..ba13e3a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -72,7 +72,8 @@ function run() { if (core.getInput('allow_failure')) { core.warning(`❗The "allow_failure" variable is deprecated in favor of "fail"`); } - const failure = ((core.getInput('failure') || 'false').toUpperCase() === 'TRUE') || allow_failure; + const failure = (core.getInput('fail') || 'false').toUpperCase() === 'TRUE' || + allow_failure; const fileList = files .split(',') .map((item) => item.trim()); diff --git a/src/main.ts b/src/main.ts index f8cdc2e..c8dab75 100644 --- a/src/main.ts +++ b/src/main.ts @@ -30,7 +30,7 @@ async function run(): Promise { ) } const failure: boolean = - (core.getInput('failure') || 'false').toUpperCase() === 'TRUE' || + (core.getInput('fail') || 'false').toUpperCase() === 'TRUE' || allow_failure const fileList: string[] = files .split(',')