From f6db630d99ec1e56f5514f7ae2e645009de00fe8 Mon Sep 17 00:00:00 2001 From: Fabian Hauser Date: Fri, 27 Sep 2024 17:09:29 +0300 Subject: [PATCH] fixup! Update ci workflow to work with forgejo --- .github/workflows/ci.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6304004..cf03128 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,14 +24,10 @@ jobs: - name: Checkout Repository shell: "nix shell nixpkgs#git-lfs --command {0}" run: | - mkdir ~/.config/git - cat <<__EOF__ > ~/.config/git/config - [credential "$GITHUB_SERVER_URL"] - username = oauth2 - helper = "!f() { test \"$1\" = get && echo \"password=$(echo $GITHUB_TOKEN)\"; }; f" - __EOF__ + git config credential.helper store + echo "$GITHUB_SERVER" | sed "s%https://%https://oauth2:$GITHUB_TOKEN@%" > ~/.gitcredentials + git lfs install git clone --no-checkout $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . - git lfs install --local git checkout --recurse-submodules $GITHUB_REF git lfs pull - name: Run Nix Build