Skip to content

Commit

Permalink
perf: add sparse index option in sparse checkout init
Browse files Browse the repository at this point in the history
  • Loading branch information
Sébastien HOUZÉ committed Nov 12, 2021
1 parent 22030d6 commit 3114de9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
REPO="https://${GITHUB_ACTOR}:${{ inputs.token }}@github.com/${GITHUB_REPOSITORY}.git"
BRANCH="${GITHUB_REF/#refs\/heads\//}"
git clone --filter=blob:none --no-checkout --depth 1 --sparse $REPO .
git sparse-checkout init --cone
git sparse-checkout init --cone --sparse-index
git sparse-checkout set ${{ inputs.patterns }}
git -c protocol.version=2 fetch --no-tags --prune --progress --depth=1 origin +${GITHUB_SHA}:refs/remotes/origin/${BRANCH}
git checkout --progress --force -B $BRANCH refs/remotes/origin/$BRANCH
Expand Down

0 comments on commit 3114de9

Please sign in to comment.