diff --git a/dist/index.js b/dist/index.js index 5e49859a..9008c892 100644 --- a/dist/index.js +++ b/dist/index.js @@ -48,8 +48,9 @@ function getInputs() { downloadSettings.sourceRepoPath = repositoryPath; const latestFlag = core.getInput("latest") === "true"; const ghTag = core.getInput("tag"); - const releaseId = core.getInput("id"); - if (latestFlag && ghTag.length > 0 && releaseId.length > 0 || ghTag.length > 0 && releaseId.length > 0) { + const releaseId = core.getInput("releaseId"); + if ((latestFlag && ghTag.length > 0 && releaseId.length > 0) || + (ghTag.length > 0 && releaseId.length > 0)) { throw new Error(`Invalid inputs. latest=${latestFlag}, tag=${ghTag} and releaseId=${releaseId} can't coexist`); } downloadSettings.isLatest = latestFlag; diff --git a/src/input-helper.ts b/src/input-helper.ts index cb83073c..b53c8774 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -23,7 +23,7 @@ export function getInputs(): IReleaseDownloadSettings { const latestFlag = core.getInput("latest") === "true" const ghTag = core.getInput("tag") - const releaseId = core.getInput("id") + const releaseId = core.getInput("releaseId") if ( (latestFlag && ghTag.length > 0 && releaseId.length > 0) ||