diff --git a/src/git-utils.ts b/src/git-utils.ts index 513bb8426..c685b4728 100644 --- a/src/git-utils.ts +++ b/src/git-utils.ts @@ -29,7 +29,9 @@ export async function copyAssets(publishDir: string, workDir: string): Promise { - const publishDir = path.join(`${process.env.GITHUB_WORKSPACE}`, inps.PublishDir); + const publishDir = path.isAbsolute(inps.PublishDir) + ? inps.PublishDir + : path.join(`${process.env.GITHUB_WORKSPACE}`, inps.PublishDir); core.info(`[INFO] ForceOrphan: ${inps.ForceOrphan}`); if (inps.ForceOrphan) {