removed subpath check
Some checks failed
Check dist / check-dist (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Licensed / Check licenses (push) Has been cancelled
Build and Test / build (push) Has been cancelled
Build and Test / test (macos-latest) (push) Has been cancelled
Build and Test / test (ubuntu-latest) (push) Has been cancelled
Build and Test / test (windows-latest) (push) Has been cancelled
Build and Test / test-proxy (push) Has been cancelled
Build and Test / test-bypass-proxy (push) Has been cancelled
Build and Test / test-git-container (push) Has been cancelled
Some checks failed
Check dist / check-dist (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Licensed / Check licenses (push) Has been cancelled
Build and Test / build (push) Has been cancelled
Build and Test / test (macos-latest) (push) Has been cancelled
Build and Test / test (ubuntu-latest) (push) Has been cancelled
Build and Test / test (windows-latest) (push) Has been cancelled
Build and Test / test-proxy (push) Has been cancelled
Build and Test / test-bypass-proxy (push) Has been cancelled
Build and Test / test-git-container (push) Has been cancelled
This commit is contained in:
17
dist/index.js
vendored
17
dist/index.js
vendored
@@ -35339,14 +35339,15 @@ function getInputs() {
|
||||
`${github.context.repo.owner}/${github.context.repo.repo}`;
|
||||
core.debug(`qualified repository = '${qualifiedRepository}'`);
|
||||
const splitRepository = qualifiedRepository.split('/');
|
||||
if (splitRepository.length === 3) {
|
||||
splitRepository.shift();
|
||||
}
|
||||
if (splitRepository.length !== 2 ||
|
||||
!splitRepository[0] ||
|
||||
!splitRepository[1]) {
|
||||
throw new Error(`Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`);
|
||||
}
|
||||
// if (
|
||||
// splitRepository.length !== 2 ||
|
||||
// !splitRepository[0] ||
|
||||
// !splitRepository[1]
|
||||
// ) {
|
||||
// throw new Error(
|
||||
// `Invalid repository '${qualifiedRepository}'. Expected format {owner}/{repo}.`
|
||||
// )
|
||||
// }
|
||||
result.repositoryOwner = splitRepository[0];
|
||||
result.repositoryName = splitRepository[1];
|
||||
// Repository path
|
||||
|
||||
Reference in New Issue
Block a user