From 2d158ad0c2bdf2ef76ec06696fdd3d2215f9d31b Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Sat, 28 Sep 2024 19:16:32 +0300 Subject: [PATCH] fixup! Update ci workflow to work with forgejo --- .github/workflows/ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bab1844..a1cf66d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,11 @@ jobs: shell: "nix shell nixpkgs#git-lfs nixpkgs#gnused --command {0}" run: | git config --global credential.helper store + git config --global advice.detachedHead false git lfs install AUTH_URL=`echo -n "$GITHUB_SERVER_URL" | sed "s%https://%https://oauth2:$GITHUB_TOKEN@%"` - git clone --no-checkout $AUTH_URL/$GITHUB_REPOSITORY . - git checkout --recurse-submodules $GITHUB_REF + git clone --recurse-submodules $AUTH_URL/$GITHUB_REPOSITORY . + git checkout --branch $GITHUB_REF_NAME --recurse-submodules $GITHUB_REF git lfs pull - name: Run Nix Build shell: "nix shell nixpkgs#git-lfs --command {0}"