Accept absolute paths for 'global-json-file' input (#396)

This commit is contained in:
Othmane KINANE authored and GitHub committed 2023-03-13 12:34:56 +01:00
1 parent 2699274f6e
commit 1d9f0dad5b
3 files changed
+28 -12

No files matched your search

+1 -1
View File
@@ -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`