From c8693d2006faba7fe9159f17d55bb286da033318 Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Sat, 12 Sep 2026 01:00:42 -0400 Subject: [PATCH] fix(ci): android-release HTTPS apt mirrors and dry_run input dind timed out on http://deb.debian.org:80. Flip sources to HTTPS. Do not let workflow_call's boolean false clobber dispatch dry_run. --- .forgejo/workflows/android-release.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/android-release.yml b/.forgejo/workflows/android-release.yml index 2c0ac32..14311a8 100644 --- a/.forgejo/workflows/android-release.yml +++ b/.forgejo/workflows/android-release.yml @@ -72,17 +72,17 @@ jobs: - name: Compute version id: version env: - INPUT_TAG: ${{ inputs.tag || github.event.inputs.tag }} - INPUT_DRY_RUN: ${{ inputs.dry_run || github.event.inputs.dry_run || 'false' }} + INPUT_TAG: ${{ github.event.inputs.tag || inputs.tag }} + INPUT_DRY_RUN: ${{ github.event.inputs.dry_run }} + CALL_DRY_RUN: ${{ inputs.dry_run }} run: | set -euo pipefail cd "${GITHUB_WORKSPACE}" git fetch --tags --force origin || true input_tag="${INPUT_TAG:-}" - case "${INPUT_DRY_RUN:-false}" in - true|TRUE|True|1|yes|YES) dry_run=true ;; - *) dry_run=false ;; - esac + dry_run=false + case "${INPUT_DRY_RUN:-}" in true|TRUE|True|1|yes|YES) dry_run=true ;; esac + case "${CALL_DRY_RUN:-}" in true|TRUE|True|1|yes|YES) dry_run=true ;; esac if [ -n "$input_tag" ]; then ver="${input_tag#v}" else @@ -122,7 +122,14 @@ jobs: set -euo pipefail cd "${GITHUB_WORKSPACE}" export DEBIAN_FRONTEND=noninteractive - apt-get update + # T480 dind timed out on http://deb.debian.org:80 (Fastly). HTTPS works + # for Forgejo checkout; flip the debian mirrors before apt-get update. + if [ -f /etc/apt/sources.list ]; then + sed -i 's|http://deb.debian.org|https://deb.debian.org|g; s|http://security.debian.org|https://security.debian.org|g; s|http://deb.debian.org/debian-security|https://deb.debian.org/debian-security|g' /etc/apt/sources.list + fi + ls /etc/apt/sources.list.d 2>/dev/null || true + cat /etc/apt/sources.list || true + apt-get -o Acquire::Retries=3 -o Acquire::https::Timeout=60 update apt-get install -y --no-install-recommends \ openjdk-17-jdk-headless python3 python3-minimal unzip curl ca-certificates \ file build-essential pkg-config git