fix(ci): treat dry_run as a string; ignore stale apt Release dates

Forgejo dispatch inputs are strings (boolean JSON 422s). bullseye-security
InRelease looked expired on the dind clock; Check-Valid-Until=false.
This commit is contained in:
Sirius DevOps 2026-09-12 01:02:41 -04:00
commit 55eab832d0
No known key found for this signature in database

View file

@ -21,10 +21,10 @@ on:
required: false
type: string
dry_run:
description: Build and checksum without creating a tag or publishing
description: Build and checksum without creating a tag or publishing (true/false)
required: false
type: boolean
default: false
type: string
default: "false"
workflow_call:
inputs:
tag:
@ -32,8 +32,8 @@ on:
type: string
dry_run:
required: false
type: boolean
default: false
type: string
default: "false"
concurrency:
group: onionwire-android-release
@ -78,6 +78,7 @@ jobs:
run: |
set -euo pipefail
cd "${GITHUB_WORKSPACE}"
echo "INPUT_DRY_RUN='${INPUT_DRY_RUN:-}' CALL_DRY_RUN='${CALL_DRY_RUN:-}' EVENT=${GITHUB_EVENT_NAME:-}"
git fetch --tags --force origin || true
input_tag="${INPUT_TAG:-}"
dry_run=false
@ -129,7 +130,7 @@ jobs:
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 -o Acquire::Retries=3 -o Acquire::https::Timeout=60 -o Acquire::Check-Valid-Until=false 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