|
|
@ -17093,9 +17093,6 @@ function getInputs() {
|
|
|
|
// Repository path
|
|
|
|
// Repository path
|
|
|
|
result.repositoryPath = core.getInput('path') || '.';
|
|
|
|
result.repositoryPath = core.getInput('path') || '.';
|
|
|
|
result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
|
|
|
|
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}'`);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// Workflow repository?
|
|
|
|
// Workflow repository?
|
|
|
|
const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
|
|
|
|
const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
|
|
|
|
`${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
|
|
|
|
`${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
|
|
|
|