Skip to content
This repository was archived by the owner on Feb 12, 2026. It is now read-only.

Commit 2ab03f1

Browse files
SIGN-7496 - enhance directory resolution logic in HelperArtifactDownload
1 parent c35ed9d commit 2ab03f1

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

actions/submit-signing-request/helper-artifact-download.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,14 @@ export class HelperArtifactDownload {
6868
}
6969

7070
private resolveOrCreateDirectory(relativePath:string): string {
71-
const absolutePath = path.join(process.env.GITHUB_WORKSPACE as string, relativePath)
71+
const workingDirectory = process.env.GITHUB_WORKSPACE as string;
72+
const absolutePath = path.isAbsolute(relativePath) ? relativePath :
73+
path.join(workingDirectory as string, relativePath);
74+
7275
if (!fs.existsSync(absolutePath)) {
7376
core.info(`Directory "${absolutePath}" does not exist and will be created`);
7477
fs.mkdirSync(absolutePath, { recursive: true });
7578
}
7679
return absolutePath;
7780
}
78-
}
81+
}

0 commit comments

Comments
 (0)