Compare commits

..

1 Commits
v1.1 ... v1.2

Author SHA1 Message Date
Michael Schmidt
c9e55219f5 subpath fix 2023-07-17 16:05:07 +02:00
2 changed files with 7 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,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] ||