Skip to content

Commit a02a550

Browse files
authored
Look for version-manifest.json relative to action path (#456)
Fixes: #455
1 parent 60cc2b4 commit a02a550

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

dist/setup/index.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/update-known-versions/index.js

Lines changed: 11 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/download/version-manifest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ import { promises as fs } from "node:fs";
22
import * as core from "@actions/core";
33
import * as semver from "semver";
44
import { fetch } from "../utils/fetch";
5+
import { join } from "node:path";
6+
7+
const localManifestFile = join(__dirname, "..", "..", "version-manifest.json");
58

69
interface ManifestEntry {
710
version: string;
@@ -51,7 +54,7 @@ async function getManifestEntries(
5154
data = await response.text();
5255
} else {
5356
core.info("manifest-file not provided, reading from local file.");
54-
const fileContent = await fs.readFile("version-manifest.json");
57+
const fileContent = await fs.readFile(localManifestFile);
5558
data = fileContent.toString();
5659
}
5760

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy