Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/actions/checkout-pr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ inputs:
default: ${{ github.job }}
token:
description: 'A Github PAT'
sparse-checkout:
description: 'Do a sparse checkout on given patterns. Each pattern should be separated with new lines.'
required: false
filter:
description: 'Partially clone against a given filter. Overrides sparse-checkout if set'
required: false
lfs:
description: 'Whether to download Git-LFS files'
required: false
default: 'true'

runs:
using: "composite"
Expand All @@ -25,7 +35,9 @@ runs:
token: ${{ inputs.token }}
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
submodules: true
lfs: true
lfs: ${{ inputs.lfs }}
sparse-checkout: ${{ inputs.sparse-checkout }}
filter: ${{ inputs.filter }}

- name: 'Fetch the other branch with enough history for a common merge-base commit'
shell: bash
Expand Down
Loading