mirror of
https://github.com/astral-sh/ruff-action.git
synced 2026-05-20 07:50:13 +02:00
Fix version-file input (#72)
The input was previously ignored Fixes: #69
This commit is contained in:
committed by
GitHub
parent
f14634c415
commit
d34edb0565
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user