fix reading releaseId from inputs (#564)

This commit is contained in:
Robin Raju authored and GitHub committed 2022-12-03 19:01:13 +00:00
1 parent a5afb4097c
commit 63a56bcf84
2 files changed
+4 -3

No files matched your search

Generated Vendored
+3 -2
View File
@@ -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;
+1 -1
View File
@@ -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) ||