]> git.ipfire.org Git - thirdparty/kmod.git/commit
ci: install git and checkout using it
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 2 Sep 2024 17:58:35 +0000 (18:58 +0100)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 3 Sep 2024 17:01:21 +0000 (12:01 -0500)
commit597259443937726d8713e5e81b2ab1c9a294ea41
tree0fe7c784bb86085e46431676d5d44f18eaa4472c
parent9b6e1eef0a0b93301d1e66c2ce7d42fb4cc063c2
ci: install git and checkout using it

Atm the checkout action pulls the whole repo as tarball, since git is
missing. Since we install packages via local actions, we need to first
do an initial sparse checkout, install the packages (git including) and
do a proper second checkout.

At which point, the second checkout action claims to set safe.directory
(it's the default) although in practise we need to do it again. Perhaps
it's getting tripped by our initial sparse checkout?

Either way, explicitly set the option so that git just works.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/86
Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
.github/actions/setup-alpine/action.yml
.github/actions/setup-archlinux/action.yml
.github/actions/setup-debian/action.yml
.github/actions/setup-fedora/action.yml
.github/actions/setup-ubuntu/action.yml
.github/workflows/main.yml