mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 09:10:16 +03:00
ENBL-4519 adding output variable to set the repo path
This commit is contained in:
parent
e6a424882a
commit
8f88041d21
3 changed files with 6 additions and 0 deletions
1
dist/index.js
vendored
1
dist/index.js
vendored
|
@ -1535,6 +1535,7 @@ function getInputs() {
|
|||
if (!allowParentPath && !(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
|
||||
throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
|
||||
}
|
||||
core.setOutput('WORKSPACE_DIR', result.repositoryPath);
|
||||
// Workflow repository?
|
||||
const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
|
||||
`${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue