CI: clone manually with /git base instead of actions/checkout
CI / build-and-smoke (push) Failing after 36s

The instance generates clone URLs without its /git subpath, so
actions/checkout 404s. Manual clone against the correct base is the
reliable workaround until the server ROOT_URL is corrected.
This commit is contained in:
2026-06-25 22:43:42 -05:00
parent 7b9a70f4fe
commit c615a5fb92
+8 -7
View File
@@ -10,15 +10,16 @@ on:
jobs: jobs:
build-and-smoke: build-and-smoke:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# This Gitea instance is served under the /git subpath, but act_runner
# reports GITHUB_SERVER_URL as https://octowow.st (subpath dropped), which
# makes actions/checkout (and API calls) build the wrong URL. Pin it.
# The real fix is the server's ROOT_URL = https://octowow.st/git/ (admin).
env:
GITHUB_SERVER_URL: https://octowow.st/git
steps: steps:
# octowow.st is served under /git, but Gitea generates clone URLs without
# it (ROOT_URL/proxy misconfig), so actions/checkout 404s. Clone manually
# against the correct base. Remove once the server ROOT_URL is fixed.
- name: Checkout - name: Checkout
uses: actions/checkout@v4 run: |
git init -q .
git remote add origin "https://gitea:${{ secrets.GITHUB_TOKEN }}@octowow.st/git/${{ github.repository }}.git"
git fetch -q --depth 1 origin "${{ github.ref }}"
git checkout -q FETCH_HEAD
- name: Build image - name: Build image
run: docker build -t mpq-packager:ci . run: docker build -t mpq-packager:ci .