fixup! Update ci workflow to work with forgejo
All checks were successful
CI / build (push) Successful in 52s

This commit is contained in:
Fabian Hauser 2024-09-28 19:16:32 +03:00
parent de77ce8c6e
commit 3270491de2

View file

@ -25,11 +25,11 @@ jobs:
shell: "nix shell nixpkgs#git-lfs nixpkgs#gnused --command {0}" shell: "nix shell nixpkgs#git-lfs nixpkgs#gnused --command {0}"
run: | run: |
git config --global credential.helper store git config --global credential.helper store
git config --global advice.detachedHead false
git lfs install git lfs install
AUTH_URL=`echo -n "$GITHUB_SERVER_URL" | sed "s%https://%https://oauth2:$GITHUB_TOKEN@%"` AUTH_URL=`echo -n "$GITHUB_SERVER_URL" | sed "s%https://%https://oauth2:$GITHUB_TOKEN@%"`
git clone --no-checkout $AUTH_URL/$GITHUB_REPOSITORY . # Disable clone protection to pull LFS as well
git checkout --recurse-submodules $GITHUB_REF GIT_CLONE_PROTECTION_ACTIVE=false git clone --branch $GITHUB_REF_NAME --recurse-submodules $AUTH_URL/$GITHUB_REPOSITORY .
git lfs pull
- name: Run Nix Build - name: Run Nix Build
shell: "nix shell nixpkgs#git-lfs --command {0}" shell: "nix shell nixpkgs#git-lfs --command {0}"
run: nix build . run: nix build .