Compare commits

...

2 Commits
v1.1 ... v1.3

Author SHA1 Message Date
Michael Schmidt
7b256c6763 checkout@v1.3 2023-07-17 16:11:22 +02:00
Michael Schmidt
c9e55219f5 subpath fix 2023-07-17 16:05:07 +02:00
2 changed files with 8 additions and 0 deletions

3
dist/index.js vendored
View File

@@ -35339,6 +35339,9 @@ 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]) {

View File

@@ -23,6 +23,11 @@ export async function getInputs(): Promise<IGitSourceSettings> {
`${github.context.repo.owner}/${github.context.repo.repo}`
core.debug(`qualified repository = '${qualifiedRepository}'`)
const splitRepository = qualifiedRepository.split('/')
core.info(splitRepository.toString())
if(splitRepository.length === 3) {
splitRepository.shift()
}
if (
splitRepository.length !== 2 ||
!splitRepository[0] ||