5
0
mirror of https://github.com/astral-sh/setup-uv.git synced 2025-12-19 11:04:08 +00:00

Look for version-manifest.json relative to action path (#456)

Fixes: #455
This commit is contained in:
Kevin Stillhammer
2025-06-18 23:09:13 +02:00
committed by GitHub
parent 60cc2b4585
commit a02a550bdd
3 changed files with 18 additions and 3 deletions

View File

@@ -2,6 +2,9 @@ import { promises as fs } from "node:fs";
import * as core from "@actions/core";
import * as semver from "semver";
import { fetch } from "../utils/fetch";
import { join } from "node:path";
const localManifestFile = join(__dirname, "..", "..", "version-manifest.json");
interface ManifestEntry {
version: string;
@@ -51,7 +54,7 @@ async function getManifestEntries(
data = await response.text();
} else {
core.info("manifest-file not provided, reading from local file.");
const fileContent = await fs.readFile("version-manifest.json");
const fileContent = await fs.readFile(localManifestFile);
data = fileContent.toString();
}