ci: accelerate the checkout
commit0dc787a9f23f78902b8792e44ff8187398e49de8
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 4 Jul 2021 22:55:14 +0000 (4 22:55 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Jul 2021 19:20:58 +0000 (6 12:20 -0700)
tree1f22f4c2231db43beb6e998f9bbbdce3f1a01f9e
parent9ab0b6612918b833bdec775f7c9bf22c4c4ddd07
ci: accelerate the checkout

By upgrading from v1 to v2 of `actions/checkout`, we avoid fetching all
the tags and the complete history: v2 only fetches one revision by
default. This should make things a lot faster.

Note that `actions/checkout@v2` seems to be incompatible with running in
containers: https://github.com/actions/checkout/issues/151. Therefore,
we stick with v1 there.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/main.yml