ci: use treeless clone instead of actions/checkout #41130
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
--depth
actions/checkout
, so it was implemented as a short script (staying withactions/checkout@v1
does not seem like a good idea because of its age, and updating toactions/checkout@v3
would require addinglibstdc++
to any CI workflows that run in void containers because of node's requirements)common/travis/
because the repo doesn't exist on the runner (yet!)changed_templates.sh
had a small logic change, because we now have the complete commit history instead of just--depth=200
. This preserves the 200 commit limit with a slightly-enhanced error message (wording clarified and it now shows up as an error annotation)fetch_upstream.sh
is no longer needed now that the checkout script fetches the entire commit history of master and the PR branchTesting the changes