Compare commits

...
Author SHA1 Message Date
36969a7e95 Merge pull request 'ci: give android-release publish job the always() prefix' (#189) from fix/android-release-publish-if into main 2026-10-21 03:40:35 +00:00
sirius
99ea4e17ac
ci: give android-release's publish job the always() prefix it needs
Run 770 built the APK and AAR and uploaded them as an artifact, then the release
never received them: /actions/runs/770/jobs lists only `android`, because a
job-level `if` that reads `needs.android.result` on this runner is evaluated as
unset and the job is dropped before it is created. A dropped job is invisible -
it is not a red job and not a skipped job in the job list - so the run reads
green while the release is missing two assets.

release.yml's publish job already carries `always() &&` for exactly this reason
(its comment cites run 135). Mirror it. Nothing else changes: the job is still
gated on android succeeding and on dry_run being false.
2026-10-20 23:42:21 -04:00

View file

@ -398,7 +398,14 @@ jobs:
needs: android
# Pi runner, not docker-amd64: POST /releases from amd64 dind returns 422
# with an empty body (core run 116). This job only curls the Forgejo API.
if: needs.android.result == 'success' && needs.android.outputs.dry_run != 'true'
# `always()` is load-bearing on this runner, not decoration. Without it the
# job-level `needs.android.result` gate is evaluated as unset, the job is
# dropped before it is ever created (it does not appear in
# /actions/runs/<n>/jobs at all, so it reads as a silent skip), and the APK
# and AAR never reach the release. Run 770 did exactly that: `android`
# green, no `publish` job, eleven assets and no APK. release.yml's publish
# job carries the same prefix for the same reason (run 135).
if: always() && needs.android.result == 'success' && needs.android.outputs.dry_run != 'true'
runs-on: docker
timeout-minutes: 20
steps: