2019-07-23 22:50:59 +07:00
|
|
|
name: 'Checkout'
|
2019-12-05 11:43:03 +07:00
|
|
|
description: 'Checkout a Git repository at a particular version'
|
2019-07-23 22:50:59 +07:00
|
|
|
inputs:
|
|
|
|
repository:
|
2019-12-04 04:47:19 +07:00
|
|
|
description: 'Repository name with owner. For example, actions/checkout'
|
2019-12-03 22:28:59 +07:00
|
|
|
default: ${{ github.repository }}
|
2019-07-23 22:50:59 +07:00
|
|
|
ref:
|
2019-12-03 22:28:59 +07:00
|
|
|
description: >
|
2019-12-13 01:49:26 +07:00
|
|
|
The branch, tag or SHA to checkout. When checking out the repository that
|
|
|
|
triggered a workflow, this defaults to the reference or SHA for that
|
|
|
|
event. Otherwise, defaults to `master`.
|
2019-07-23 22:50:59 +07:00
|
|
|
token:
|
2019-12-13 01:49:26 +07:00
|
|
|
description: >
|
|
|
|
Auth token used to fetch the repository. The token is stored in the local
|
|
|
|
git config, which enables your scripts to run authenticated git commands.
|
|
|
|
The post-job step removes the token from the git config.
|
2019-12-03 22:28:59 +07:00
|
|
|
default: ${{ github.token }}
|
2019-12-13 01:49:26 +07:00
|
|
|
persist-credentials:
|
|
|
|
description: 'Whether to persist the token in the git config'
|
|
|
|
default: true
|
2019-12-03 22:28:59 +07:00
|
|
|
path:
|
|
|
|
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
|
2019-07-23 22:50:59 +07:00
|
|
|
clean:
|
2019-12-03 22:28:59 +07:00
|
|
|
description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
|
2019-07-23 22:50:59 +07:00
|
|
|
default: true
|
|
|
|
fetch-depth:
|
2019-12-03 22:28:59 +07:00
|
|
|
description: 'Number of commits to fetch. 0 indicates all history.'
|
|
|
|
default: 1
|
|
|
|
lfs:
|
|
|
|
description: 'Whether to download Git-LFS files'
|
|
|
|
default: false
|
2019-07-23 22:50:59 +07:00
|
|
|
runs:
|
2019-12-03 22:28:59 +07:00
|
|
|
using: node12
|
|
|
|
main: dist/index.js
|
2019-12-05 11:43:03 +07:00
|
|
|
post: dist/index.js
|