Skip to content

Latest commit

 

History

History
72 lines (57 loc) · 3.78 KB

README.md

File metadata and controls

72 lines (57 loc) · 3.78 KB

branding<icon:git-branch color:gray-dark> GitHub Action: Checkout

Release%20by%20tagRelease%20by%20dateCommitOpen%20IssuesDownloads

Action to checkout the repository compatible for PRs, issues and push events. Workaround for actions/checkout#331

Set permissions to read contents and pull-requests. This is required to get the PR branch.

on: issue_comment
permissions:
  contents: read
  pull-requests: read
- uses: hoverkraft-tech/[email protected]
  with:
    # Description: Number of commits to fetch. 0 indicates all history for all
    # branches and tags. See
    # [https://github.com/actions/checkout#usage](https://github.com/actions/checkout#usage)
    #
    # Default: 1
    fetch-depth: ""

    # Description: Whether to download Git-LFS files. See
    # [https://github.com/actions/checkout#usage](https://github.com/actions/checkout#usage)
    #
    # Default: false
    lfs: ""

    # Description: Token to use for checking out the repository instead of the default
    # GITHUB_TOKEN. If specified and not empty, persist-credentials in checkout will
    # be false.
    #
    token: ""
Input Description Default Required
fetch-depth Number of commits to fetch. 0 indicates all history for all branches and tags. See https://github.com/actions/checkout#usage 1 false
lfs Whether to download Git-LFS files. See https://github.com/actions/checkout#usage false
token Token to use for checking out the repository instead of the default GITHUB_TOKEN.
If specified and not empty, persist-credentials in checkout will be false.
false