diff --git a/.github/actions/checkout-pr/action.yml b/.github/actions/checkout-pr/action.yml index bc22a26c..a9fbdabb 100644 --- a/.github/actions/checkout-pr/action.yml +++ b/.github/actions/checkout-pr/action.yml @@ -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" @@ -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