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.
This commit is contained in:
parent
08bf6649df
commit
99ea4e17ac
1 changed files with 8 additions and 1 deletions
|
|
@ -398,7 +398,14 @@ jobs:
|
||||||
needs: android
|
needs: android
|
||||||
# Pi runner, not docker-amd64: POST /releases from amd64 dind returns 422
|
# 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.
|
# 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
|
runs-on: docker
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue