Testing
This commit is contained in:
4 files changed
+21
No files matched your search
@@ -3,21 +3,29 @@ description: 'Checkout a Git repository.'
|
|||||||
inputs:
|
inputs:
|
||||||
repository:
|
repository:
|
||||||
description: 'Repository name'
|
description: 'Repository name'
|
||||||
|
required: false
|
||||||
ref:
|
ref:
|
||||||
description: 'Ref to checkout (SHA, branch, tag)'
|
description: 'Ref to checkout (SHA, branch, tag)'
|
||||||
|
required: false
|
||||||
token:
|
token:
|
||||||
description: 'Access token for clone repository'
|
description: 'Access token for clone repository'
|
||||||
|
required: false
|
||||||
clean:
|
clean:
|
||||||
description: 'If true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching'
|
description: 'If true, execute `execute git clean -ffdx && git reset --hard HEAD` before fetching'
|
||||||
default: true
|
default: true
|
||||||
|
required: false
|
||||||
submodules:
|
submodules:
|
||||||
description: 'Whether to include submodules: false to exclude submodules, true to include only one level of submodules, or recursive to recursively clone submodules; defaults to false'
|
description: 'Whether to include submodules: false to exclude submodules, true to include only one level of submodules, or recursive to recursively clone submodules; defaults to false'
|
||||||
|
required: false
|
||||||
lfs:
|
lfs:
|
||||||
description: 'Whether to download Git-LFS files; defaults to false'
|
description: 'Whether to download Git-LFS files; defaults to false'
|
||||||
|
required: false
|
||||||
fetch-depth:
|
fetch-depth:
|
||||||
description: 'The depth of commits to ask Git to fetch; defaults to no limit'
|
description: 'The depth of commits to ask Git to fetch; defaults to no limit'
|
||||||
|
required: false
|
||||||
path:
|
path:
|
||||||
description: 'Optional path to check out source code'
|
description: 'Optional path to check out source code'
|
||||||
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: node20
|
using: node20
|
||||||
main: dist/index.js
|
main: dist/index.js
|
||||||
+6
@@ -24737,6 +24737,12 @@ async function constructRepoURL(repository, ref, token) {
|
|||||||
core.debug(`repo: ${repository}`);
|
core.debug(`repo: ${repository}`);
|
||||||
core.debug(`ref: ${ref}`);
|
core.debug(`ref: ${ref}`);
|
||||||
core.debug(`token: ${token}`);
|
core.debug(`token: ${token}`);
|
||||||
|
core.debug(`GITEA_REPOSITORY: ${process.env.GITEA_REPOSITORY}`);
|
||||||
|
core.debug(`GITEA_ACTOR: ${process.env.GITEA_ACTOR}`);
|
||||||
|
core.debug(`GITEA_REF: ${process.env.GITEA_REF}`);
|
||||||
|
core.debug(`GITEA_HEAD_REF: ${process.env.GITEA_HEAD_REF}`);
|
||||||
|
core.debug(`GITEA_BASE_REF: ${process.env.GITEA_BASE_REF}`);
|
||||||
|
core.debug(`GITEA_SERVER_URL: ${process.env.GITEA_SERVER_URL}`);
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
Regular → Executable
File mode changed.
@@ -5,6 +5,13 @@ async function constructRepoURL(repository: string, ref: string, token: string):
|
|||||||
core.debug(`repo: ${repository}`)
|
core.debug(`repo: ${repository}`)
|
||||||
core.debug(`ref: ${ref}`)
|
core.debug(`ref: ${ref}`)
|
||||||
core.debug(`token: ${token}`)
|
core.debug(`token: ${token}`)
|
||||||
|
core.debug(`GITEA_REPOSITORY: ${process.env.GITEA_REPOSITORY}`)
|
||||||
|
core.debug(`GITEA_ACTOR: ${process.env.GITEA_ACTOR}`)
|
||||||
|
core.debug(`GITEA_REF: ${process.env.GITEA_REF}`)
|
||||||
|
core.debug(`GITEA_HEAD_REF: ${process.env.GITEA_HEAD_REF}`)
|
||||||
|
core.debug(`GITEA_BASE_REF: ${process.env.GITEA_BASE_REF}`)
|
||||||
|
core.debug(`GITEA_SERVER_URL: ${process.env.GITEA_SERVER_URL}`)
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user