diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 8eddf98..595c860 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,6 +10,12 @@ on: jobs: build-and-smoke: 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: - name: Checkout uses: actions/checkout@v4 diff --git a/examples/release.yml b/examples/release.yml index 84210dd..025a75a 100644 --- a/examples/release.yml +++ b/examples/release.yml @@ -4,6 +4,10 @@ # # Requires: Actions enabled on the repo, and a runner advertising `ubuntu-latest` # (or change runs-on to a label your act_runner registers). +# +# NOTE: octowow.st is served under the /git subpath. act_runner reports +# GITHUB_SERVER_URL without it, breaking checkout and the release API calls, so +# we pin GITHUB_SERVER_URL below. Drop this once the server's ROOT_URL is fixed. name: Release MPQ on: @@ -14,6 +18,8 @@ on: jobs: package: runs-on: ubuntu-latest + env: + GITHUB_SERVER_URL: https://octowow.st/git steps: - name: Checkout uses: actions/checkout@v4