Compare commits

..

2 Commits
v1 ... v1.2

Author SHA1 Message Date
Michael Schmidt
c9e55219f5 subpath fix 2023-07-17 16:05:07 +02:00
Michael Schmidt
9eeba4b77e v1.1 2023-07-17 15:45:25 +02:00
3 changed files with 13 additions and 0 deletions

View File

@@ -4,6 +4,12 @@
This is a fork of https://github.com/actions/checkout@v3
# Build
## Windows
ncc.cmd build .\src\main.ts
# What's new
With this action it is possible to check out a repository located on a Gitea instance with subdirectories.

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] ||