|
|
@ -1535,6 +1535,7 @@ function getInputs() {
|
|
|
|
if (!allowParentPath && !(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
|
|
|
|
if (!allowParentPath && !(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
|
|
|
|
throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
|
|
|
|
throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
core.setOutput('WORKSPACE_DIR', result.repositoryPath);
|
|
|
|
// 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();
|
|
|
|