action.yml 1.0 KB

1234567891011121314151617181920212223242526272829
  1. name: 'Checkout'
  2. description: 'Checkout a Git repository at a particular version'
  3. inputs:
  4. repository:
  5. description: 'Repository name with owner. For example, actions/checkout'
  6. default: ${{ github.repository }}
  7. ref:
  8. description: >
  9. The branch, tag or SHA to checkout. When checking out the repository
  10. that triggered a workflow, this defaults to the reference or SHA for
  11. that event. Otherwise, defaults to `master`.
  12. token:
  13. description: 'Access token for clone repository'
  14. default: ${{ github.token }}
  15. path:
  16. description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
  17. clean:
  18. description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
  19. default: true
  20. fetch-depth:
  21. description: 'Number of commits to fetch. 0 indicates all history.'
  22. default: 1
  23. lfs:
  24. description: 'Whether to download Git-LFS files'
  25. default: false
  26. runs:
  27. using: node12
  28. main: dist/index.js
  29. post: dist/index.js