fixup! Update ci workflow to work with forgejo
Some checks failed
CI / build (push) Failing after 30s

This commit is contained in:
Fabian Hauser 2024-09-27 17:09:29 +03:00
parent 004186072b
commit f6db630d99

View file

@ -24,14 +24,10 @@ jobs:
- name: Checkout Repository - name: Checkout Repository
shell: "nix shell nixpkgs#git-lfs --command {0}" shell: "nix shell nixpkgs#git-lfs --command {0}"
run: | run: |
mkdir ~/.config/git git config credential.helper store
cat <<__EOF__ > ~/.config/git/config echo "$GITHUB_SERVER" | sed "s%https://%https://oauth2:$GITHUB_TOKEN@%" > ~/.gitcredentials
[credential "$GITHUB_SERVER_URL"] git lfs install
username = oauth2
helper = "!f() { test \"$1\" = get && echo \"password=$(echo $GITHUB_TOKEN)\"; }; f"
__EOF__
git clone --no-checkout $GITHUB_SERVER_URL/$GITHUB_REPOSITORY . git clone --no-checkout $GITHUB_SERVER_URL/$GITHUB_REPOSITORY .
git lfs install --local
git checkout --recurse-submodules $GITHUB_REF git checkout --recurse-submodules $GITHUB_REF
git lfs pull git lfs pull
- name: Run Nix Build - name: Run Nix Build