Testing 2
This commit is contained in:
2 files changed
+1
-9
No files matched your search
@@ -3,29 +3,21 @@ 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
|
||||||
+1
-1
@@ -21,7 +21,7 @@ async function constructRepoURL(repository: string, ref: string, token: string):
|
|||||||
*/
|
*/
|
||||||
export async function run(): Promise<void> {
|
export async function run(): Promise<void> {
|
||||||
try {
|
try {
|
||||||
const repository: string = core.getInput('repository', { required: true });
|
const repository: string = core.getInput('repository');
|
||||||
const ref: string = core.getInput('ref');
|
const ref: string = core.getInput('ref');
|
||||||
const token: string = core.getInput('token');
|
const token: string = core.getInput('token');
|
||||||
const clean: boolean = core.getBooleanInput('clean');
|
const clean: boolean = core.getBooleanInput('clean');
|
||||||
|
|||||||
Reference in new issue
Block a user