Skip to content

Commit

Permalink
override org as an input
Browse files Browse the repository at this point in the history
  • Loading branch information
John Tracy committed Jun 5, 2020
1 parent 679f2a7 commit f03d502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14077,9 +14077,9 @@ function getInputs() {
github.context.repo.repo.split('/')[1];
core.debug(`qualified repository = '${qualifiedRepository}'`);
result.repositoryOwner = github.context.repo.owner;
result.repositoryName =
// Repository path
result.repositoryPath = core.getInput('path') || '.';
result.repositoryName = qualifiedRepository;
// Repository path
result.repositoryPath = core.getInput('path') || '.';
result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
Expand Down
2 changes: 1 addition & 1 deletion src/input-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function getInputs(): IGitSourceSettings {
github.context.repo.repo.split('/')[1]
core.debug(`qualified repository = '${qualifiedRepository}'`)
result.repositoryOwner = github.context.repo.owner
result.repositoryName =
result.repositoryName = qualifiedRepository

// Repository path
result.repositoryPath = core.getInput('path') || '.'
Expand Down

0 comments on commit f03d502

Please sign in to comment.