From d613e160d54ac59331d17f271aa8040a8e9ee440 Mon Sep 17 00:00:00 2001 From: panticmilos Date: Mon, 20 Feb 2023 20:41:54 +0100 Subject: [PATCH] Global json file absolute path fix --- src/setup-dotnet.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/setup-dotnet.ts b/src/setup-dotnet.ts index c5e590101..0d186bc34 100644 --- a/src/setup-dotnet.ts +++ b/src/setup-dotnet.ts @@ -31,7 +31,7 @@ export async function run() { const globalJsonFileInput = core.getInput('global-json-file'); if (globalJsonFileInput) { - const globalJsonPath = path.join(process.cwd(), globalJsonFileInput); + const globalJsonPath = path.resolve(process.cwd(), globalJsonFileInput); if (!fs.existsSync(globalJsonPath)) { throw new Error( `The specified global.json file '${globalJsonFileInput}' does not exist`