From e193524bff3509becae7e3ced3114176cc70a5dd Mon Sep 17 00:00:00 2001 From: favonia Date: Fri, 17 Jul 2020 22:55:50 -0500 Subject: [PATCH] feat: Allow absolute path for publish_dir (#400) Close #242 --- src/git-utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {