mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-02 08:46:05 +03:00
fix reading releaseId from inputs (#564)
This commit is contained in:
1 parent
a5afb4097c
commit
63a56bcf84
2 files changed
+4
-3
No files matched your search
+3
-2
@@ -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
@@ -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) ||
|
||||
|
||||
Reference in new issue
Block a user