Skip to content

Commit

Permalink
feat: Allow absolute path for publish_dir (#400)
Browse files Browse the repository at this point in the history
Close #242
  • Loading branch information
favonia authored Jul 18, 2020
1 parent 7e92312 commit e193524
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/git-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export async function copyAssets(publishDir: string, workDir: string): Promise<v
}

export async function setRepo(inps: Inputs, remoteURL: string, workDir: string): Promise<void> {
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) {
Expand Down

0 comments on commit e193524

Please sign in to comment.