Open y-nk opened 6 months ago
The default is to only download the files specifically for the commit you are building, ie fetch-depth:1
is what you want.
i would like to add that i do not use the /merge in ref, so fetch: 1 does not match. i'd like to checkout consistently [github.event.before, ..., github.event.pull_request.head.sha]
I've set
fetch-depth
to${{ github.event.pull_request.commits }}
to avoid fetching my whole repo. The action executes like this:So then i would expect to have 12 commits (11 + the merge commit) in the rev-list, but i get much more than this.
not sure why. could somebody tell me if it's normal?