From 99ea4e17ac80fa479aefc12d5a5c0f781601d297 Mon Sep 17 00:00:00 2001 From: sirius Date: Tue, 20 Oct 2026 23:42:21 -0400 Subject: [PATCH] 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. --- .forgejo/workflows/android-release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/android-release.yml b/.forgejo/workflows/android-release.yml index 4894a8e..1e34c17 100644 --- a/.forgejo/workflows/android-release.yml +++ b/.forgejo/workflows/android-release.yml @@ -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//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: