From eb646cc0d907239ca4189e31945bc2a9d3348829 Mon Sep 17 00:00:00 2001 From: Codex Date: Sun, 5 Jul 2026 17:29:11 +0000 Subject: [PATCH] Diagnose Gitea clone secret and auth format --- .gitea/workflows/android.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/android.yaml b/.gitea/workflows/android.yaml index 0f5d40b..e2fb061 100644 --- a/.gitea/workflows/android.yaml +++ b/.gitea/workflows/android.yaml @@ -40,7 +40,7 @@ jobs: REPOSITORY="${GITHUB_REPOSITORY:-tmux/tmux-browser-android}" TOKEN="${CLONE_TOKEN:-${GITHUB_TOKEN:-${GITEA_TOKEN:-}}}" if [ -n "${TOKEN}" ]; then - AUTH_SERVER_URL="$(printf '%s' "${SERVER_URL}" | sed "s#https://#https://x-access-token:${TOKEN}@#")" + AUTH_SERVER_URL="$(printf '%s' "${SERVER_URL}" | sed "s#https://#https://gouki:${TOKEN}@#")" REPO_URL="${AUTH_SERVER_URL}/${REPOSITORY}.git" else REPO_URL="${SERVER_URL}/${REPOSITORY}.git" @@ -50,6 +50,15 @@ jobs: git checkout "${GITHUB_SHA:-main}" test -f app/build.gradle.kts + secret: + runs-on: ubuntu-latest + steps: + - name: Check clone token secret + env: + CLONE_TOKEN: ${{ secrets.TMUX_GITEA_TOKEN }} + run: | + test -n "${CLONE_TOKEN:-}" + build: runs-on: ubuntu-latest steps: @@ -77,7 +86,7 @@ jobs: REPOSITORY="${GITHUB_REPOSITORY:-tmux/tmux-browser-android}" TOKEN="${CLONE_TOKEN:-${GITHUB_TOKEN:-${GITEA_TOKEN:-}}}" if [ -n "${TOKEN}" ]; then - AUTH_SERVER_URL="$(printf '%s' "${SERVER_URL}" | sed "s#https://#https://x-access-token:${TOKEN}@#")" + AUTH_SERVER_URL="$(printf '%s' "${SERVER_URL}" | sed "s#https://#https://gouki:${TOKEN}@#")" REPO_URL="${AUTH_SERVER_URL}/${REPOSITORY}.git" else REPO_URL="${SERVER_URL}/${REPOSITORY}.git"