fix(ci): android-release HTTPS apt mirrors and dry_run input
All checks were successful
ci / test (pull_request) Successful in 7m9s

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.
This commit is contained in:
Sirius DevOps 2026-09-12 01:00:42 -04:00
commit c8693d2006
No known key found for this signature in database

View file

@ -72,17 +72,17 @@ jobs:
- name: Compute version - name: Compute version
id: version id: version
env: env:
INPUT_TAG: ${{ inputs.tag || github.event.inputs.tag }} INPUT_TAG: ${{ github.event.inputs.tag || inputs.tag }}
INPUT_DRY_RUN: ${{ inputs.dry_run || github.event.inputs.dry_run || 'false' }} INPUT_DRY_RUN: ${{ github.event.inputs.dry_run }}
CALL_DRY_RUN: ${{ inputs.dry_run }}
run: | run: |
set -euo pipefail set -euo pipefail
cd "${GITHUB_WORKSPACE}" cd "${GITHUB_WORKSPACE}"
git fetch --tags --force origin || true git fetch --tags --force origin || true
input_tag="${INPUT_TAG:-}" input_tag="${INPUT_TAG:-}"
case "${INPUT_DRY_RUN:-false}" in dry_run=false
true|TRUE|True|1|yes|YES) dry_run=true ;; case "${INPUT_DRY_RUN:-}" in true|TRUE|True|1|yes|YES) dry_run=true ;; esac
*) dry_run=false ;; case "${CALL_DRY_RUN:-}" in true|TRUE|True|1|yes|YES) dry_run=true ;; esac
esac
if [ -n "$input_tag" ]; then if [ -n "$input_tag" ]; then
ver="${input_tag#v}" ver="${input_tag#v}"
else else
@ -122,7 +122,14 @@ jobs:
set -euo pipefail set -euo pipefail
cd "${GITHUB_WORKSPACE}" cd "${GITHUB_WORKSPACE}"
export DEBIAN_FRONTEND=noninteractive 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 \ apt-get install -y --no-install-recommends \
openjdk-17-jdk-headless python3 python3-minimal unzip curl ca-certificates \ openjdk-17-jdk-headless python3 python3-minimal unzip curl ca-certificates \
file build-essential pkg-config git file build-essential pkg-config git