mirror of
https://code.forgejo.org/actions/checkout.git
synced 2025-04-21 17:12:03 +03:00
Don't enforce that checkout path must be inside of Github Workspace
Fixes #327, Fixes #197. And i also hit this.
This commit is contained in:
parent
5a4ac9002d
commit
edb45c76ac
4 changed files with 2 additions and 14 deletions
3
dist/index.js
vendored
3
dist/index.js
vendored
|
@ -14537,9 +14537,6 @@ function getInputs() {
|
|||
// 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}'`);
|
||||
}
|
||||
// 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