checkout/action.yml

36 lines
1.2 KiB
YAML
Raw Normal View History

name: 'Checkout'
2019-12-05 12:43:03 +08:00
description: 'Checkout a Git repository at a particular version'
inputs:
repository:
2019-12-04 05:47:19 +08:00
description: 'Repository name with owner. For example, actions/checkout'
default: ${{ github.repository }}
ref:
description: >
2019-12-05 12:43:03 +08: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`.
token:
description: 'Access token for clone repository'
default: ${{ github.token }}
path:
description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
clean:
description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
default: true
fetch-depth:
description: 'Number of commits to fetch. 0 indicates all history.'
default: 1
lfs:
description: 'Whether to download Git-LFS files'
default: false
silentFailure:
description: 'Whether to silent failure'
default: false
outputs:
failure:
description: 'A boolean value to indicate if the checkout failed'
runs:
using: node12
main: dist/index.js
2019-12-05 12:43:03 +08:00
post: dist/index.js