From 784a8a49d3f8c10d95b4ef08c310fb882c8b325e Mon Sep 17 00:00:00 2001 From: such-gitea Date: Mon, 5 Jan 2026 06:05:19 -0800 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 72ec7f2..0a2db10 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -7,27 +7,27 @@ jobs: build-macos: runs-on: macos-latest # Runs on your Mac Mini steps: - - name: Manual Checkout (Debug) + - name: Manual Checkout (Local) env: - # This token is automatically provided by Gitea to allow cloning GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - # 1. Clean the workspace to ensure a fresh start echo "Cleaning workspace..." rm -rf * - # 2. Force Git to use HTTPS (Fixes 'hangs' if submodules use git:// or git@) + # 1. (Optional) Safety config just in case + git config --global --add safe.directory '*' + + # 2. Clone using LOCALHOST (Port 3000) + # We switch to HTTP to bypass SSL/Certificate errors entirely + echo "Cloning from Localhost..." + git clone http://oauth2:$GITHUB_TOKEN@localhost:3000/${{ github.repository }}.git . + + # 3. Update Submodules + # We keep the forced HTTPS for submodules (since they live on GitHub/Codeberg) + # But we do NOT force it for the main repo anymore. git config --global url."https://github.com/".insteadOf "git@github.com:" - git config --global url."https://github.com/".insteadOf "git://github.com/" git config --global url."https://codeberg.org/".insteadOf "git@codeberg.org:" - - # 3. Clone the main repo from YOUR Gitea - # We use the token to authenticate seamlessly - echo "Cloning main repository..." - git clone https://user:$GITHUB_TOKEN@git.such.software/${{ github.repository }}.git . - - # 4. Manually update submodules - # This will show us EXACTLY which submodule fails if one is broken + echo "Initializing submodules..." git submodule update --init --recursive