From d20e2993849515dad830d453d6f3ab4e09f2d0db Mon Sep 17 00:00:00 2001 From: Jonah Back Date: Sun, 21 Mar 2021 21:01:00 -0700 Subject: [PATCH] Use 'sourcePath' for custom git source directory Signed-off-by: Jonah Back --- .../src/scaffolder/actions/builtin/publish/github.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts index 5979136488..a791f3ad39 100644 --- a/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts +++ b/plugins/scaffolder-backend/src/scaffolder/actions/builtin/publish/github.ts @@ -40,7 +40,7 @@ export function createPublishGithubAction(options: { repoUrl: string; description?: string; access?: string; - repoPath?: string; + sourcePath?: string; repoVisibility: 'private' | 'internal' | 'public'; }>({ id: 'publish:github', @@ -68,7 +68,7 @@ export function createPublishGithubAction(options: { type: 'string', enum: ['private', 'public', 'internal'], }, - repoPath: { + sourcePath: { title: 'Repository Path', type: 'string', }, @@ -163,8 +163,8 @@ export function createPublishGithubAction(options: { const remoteUrl = data.clone_url; const repoContentsUrl = `${data.html_url}/blob/master`; - const outputPath = ctx.input.repoPath - ? resolvePath(ctx.workspacePath, ctx.input.repoPath) + const outputPath = ctx.input.sourcePath + ? resolvePath(ctx.workspacePath, ctx.input.sourcePath) : ctx.workspacePath; await initRepoAndPush({