From eddce75e91db6e801180cbe2bd9d20a042044575 Mon Sep 17 00:00:00 2001 From: neru Date: Fri, 20 Mar 2026 21:28:41 -0300 Subject: [PATCH] build: ai slop test fml --- .github/workflows/build.yml | 43 +++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93e5785..3722541 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,13 +13,44 @@ jobs: steps: - uses: actions/checkout@v4 - - - name: Configure Git Auth for Submodules - run: | - git config --global url."https://${{ github.token }}@git.neru.rip/".insteadOf "https://git.neru.rip/" - git config --global url."https://${{ github.token }}@git.neru.rip/".insteadOf "http://git.neru.rip/" + with: + submodules: false - git config --global url."https://${{ github.token }}@git.neru.rip/".insteadOf "git@git.neru.rip:" + - name: Configure Git Auth + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + # Debug: Show current config before changes + echo "Current git config:" + git config --global --list || true + + # Set up credential helper + git config --global credential.helper "store --file=$HOME/.git-credentials" + echo "https://${{ secrets.GITEA_TOKEN }}@git.neru.rip" > $HOME/.git-credentials + + # Alternative: use URL rewrite with more precise matching + git config --global url."https://${{ secrets.GITEA_TOKEN }}@git.neru.rip/".insteadOf "https://git.neru.rip/" + + # Also try with http variant + git config --global url."https://${{ secrets.GITEA_TOKEN }}@git.neru.rip/".insteadOf "http://git.neru.rip/" + + # Force git to use the credential store + git config --global credential.useHttpPath true + + # Debug: Show config after changes + echo "Updated git config:" + git config --global --list | grep -i url || true + echo "Credential file:" + cat $HOME/.git-credentials || true + + - name: Test Authentication + env: + GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + run: | + # Test if authentication works + echo "Testing authentication to git.neru.rip..." + git ls-remote https://git.neru.rip/neru/nerutils.git HEAD || true + - name: Fetch Submodules run: |