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`