ci(release): android-release is dispatch-only; a CI-created tag cannot wake it
Neither decoupled trigger fires on Forgejo 10.0.3: a tag created by the CI (API or git push) is an Actions-user push and is not dispatched back into Actions, and reusable workflows need Forgejo >= 12. The release procedure is therefore two dispatches: release.yml, then android-release with that tag.
This commit is contained in:
parent
7435ce42f5
commit
2cf055c1e8
4 changed files with 73 additions and 50 deletions
|
|
@ -15,16 +15,20 @@ name: android-release
|
|||
# latest v*.*.* tag UNLESS that tag's release is missing the Android assets —
|
||||
# then join it (core owns tag creation). Never move or delete a tag.
|
||||
#
|
||||
# No `push: branches: [main]` trigger: a merged android PR does not publish an
|
||||
# APK. This workflow is woken by the tag release.yml creates for a manual,
|
||||
# batched release — creating a tag over the API sends the same push
|
||||
# notification a `git push` does, so the tag ref matches this filter.
|
||||
# See docs/RELEASING.md.
|
||||
# No automatic trigger, on purpose. Two candidate decoupled triggers were
|
||||
# tried and both dead-end on Forgejo 10.0.3 (see docs/RELEASING.md):
|
||||
# - `push: tags: ['v*.*.*']` — a tag created by release.yml (API or git push)
|
||||
# does not fire it: pushes made with the CI's token are Actions-user events
|
||||
# and Forgejo deliberately does not dispatch those back into Actions.
|
||||
# Verified: the v0.2.0 and v0.2.1 tags produced no run, while hand-pushed
|
||||
# tags did historically.
|
||||
# - `workflow_call` from release.yml — reusable workflows only exist from
|
||||
# Forgejo 12; this instance is 10.0.3.
|
||||
# So a release is two dispatches: release.yml, then this one with `tag=<the
|
||||
# tag the core just created>`. The core's run leaves the tag; this attaches
|
||||
# the APK + AAR to it.
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
tag:
|
||||
|
|
|
|||
Loading…
Reference in a new issue