ci-github-common

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 https://github.com/actions/checkout/issues/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/ci-github-common@0.22.0
  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 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