action.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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 that
  10. triggered a workflow, this defaults to the reference or SHA for that
  11. event. Otherwise, defaults to `master`.
  12. token:
  13. description: >
  14. Auth token used to fetch the repository. The token is stored in the local
  15. git config, which enables your scripts to run authenticated git commands.
  16. The post-job step removes the token from the git config.
  17. default: ${{ github.token }}
  18. persist-credentials:
  19. description: 'Whether to persist the token in the git config'
  20. default: true
  21. path:
  22. description: 'Relative path under $GITHUB_WORKSPACE to place the repository'
  23. clean:
  24. description: 'Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
  25. default: true
  26. fetch-depth:
  27. description: 'Number of commits to fetch. 0 indicates all history.'
  28. default: 1
  29. lfs:
  30. description: 'Whether to download Git-LFS files'
  31. default: false
  32. runs:
  33. using: node12
  34. main: dist/index.js
  35. post: dist/index.js