1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-04-29 06:32:57 +02:00
This commit is contained in:
Roman Lebedev 2021-10-21 00:19:16 -07:00 committed by GitHub
commit 5139d5a9bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 14 deletions

3
dist/index.js vendored
View file

@ -17093,9 +17093,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();