subpath fix

This commit is contained in:
Michael Schmidt
2023-07-17 16:05:07 +02:00
parent 9eeba4b77e
commit c9e55219f5
2 changed files with 7 additions and 0 deletions

View File

@@ -23,6 +23,10 @@ export async function getInputs(): Promise<IGitSourceSettings> {
`${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] ||