Fix version-file input (#72)

The input was previously ignored

Fixes: #69
This commit is contained in:
Kevin Stillhammer
2025-02-06 08:40:41 +01:00
committed by GitHub
parent f14634c415
commit d34edb0565
5 changed files with 48 additions and 4 deletions
+2
View File
@@ -71,6 +71,7 @@ export async function resolveVersion(
versionInput: string,
githubToken: string,
): Promise<string> {
core.debug(`Resolving ${versionInput}...`);
const version =
versionInput === "latest"
? await getLatestVersion(githubToken)
@@ -84,6 +85,7 @@ export async function resolveVersion(
if (resolvedVersion === "") {
throw new Error(`No version found for ${version}`);
}
core.debug(`Resolved version: ${resolvedVersion}`);
return resolvedVersion;
}