ci(release): android-release cannot be woken by a CI-created tag — make it dispatch-only #63

Merged
sirius merged 3 commits from wt/t_95e0d607 into main 2026-09-12 23:11:25 +00:00
Owner

Follow-up to #62 (already merged)

#62 landed the manual/batched release policy. It also wired the Android assets
with push: tags: ['v*.*.*'] on android-release.yml, on the theory that the
tag release.yml creates would wake it. Runtime evidence says it does not,
so this PR corrects that before anyone relies on it:

  • release.yml run #218 (workflow_dispatch, bump=patch) created tag
    v0.2.1 and published the release with all four Linux assets —
    https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/218
    (release: https://forgejo.siriusdevops.com/sirius/onionwire/releases/tag/v0.2.1)
  • No android-release run fired for that tag — nor for v0.2.0 (run #216).
    Both the API-created tag and a real git push of the tag from the version
    job were tried; neither produced a run.
  • Cause (source-verified on v10.0.3): services/actions/notifier_helper.go
    drops events whose doer is the Actions user — a push made with the CI's
    token is such an event, so it is never dispatched back into Actions. The
    historical hand-pushed tags that did fire tag-filtered workflows were
    pushed by a human, which is why the trigger looked sound.
  • The other option the card offered, workflow_call, is not available either:
    reusable workflows only appear in the Forgejo docs from v12; this instance
    reports 10.0.3+gitea-1.22.0.

What changes

  • android-release.yml: push: tags removed — it is workflow_dispatch
    only. The workflow_call block stays declared for a future instance upgrade.
    Header comment records why.
  • docs/RELEASING.md + README: the release procedure is two dispatches —
    release (tag + Linux binaries), then android-release with that tag
    (APK + AAR onto the same release).

Evidence for the Linux half (unchanged by this PR)

  • dry run: release.yml #206, dry_run=true — version + aarch64 + x86_64
  • real run: release.yml #218, bump=patch — tag v0.2.1 created by the
    workflow (not by hand), both binaries + checksums:
    onionwire-aarch64-unknown-linux-gnu 24507576, .sha256 102,
    onionwire-x86_64-unknown-linux-gnu 26835360, .sha256 101.
  • release.yml #216, bump=minor — v0.2.0, same four assets.
  • Android: android-release #219 was dispatched with tag=v0.2.1 and is
    building at the time of writing; the assets attach to the v0.2.1 release.
## Follow-up to #62 (already merged) #62 landed the manual/batched release policy. It also wired the Android assets with `push: tags: ['v*.*.*']` on `android-release.yml`, on the theory that the tag `release.yml` creates would wake it. **Runtime evidence says it does not**, so this PR corrects that before anyone relies on it: - `release.yml` run **#218** (`workflow_dispatch`, `bump=patch`) created tag **v0.2.1** and published the release with all four Linux assets — https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/218 (release: https://forgejo.siriusdevops.com/sirius/onionwire/releases/tag/v0.2.1) - **No `android-release` run fired** for that tag — nor for v0.2.0 (run #216). Both the API-created tag and a real `git push` of the tag from the version job were tried; neither produced a run. - Cause (source-verified on v10.0.3): `services/actions/notifier_helper.go` drops events whose doer is the Actions user — a push made with the CI's token is such an event, so it is never dispatched back into Actions. The historical hand-pushed tags that *did* fire tag-filtered workflows were pushed by a human, which is why the trigger looked sound. - The other option the card offered, `workflow_call`, is not available either: reusable workflows only appear in the Forgejo docs from v12; this instance reports `10.0.3+gitea-1.22.0`. ## What changes - `android-release.yml`: `push: tags` removed — it is `workflow_dispatch` only. The `workflow_call` block stays declared for a future instance upgrade. Header comment records why. - `docs/RELEASING.md` + `README`: the release procedure is **two dispatches** — `release` (tag + Linux binaries), then `android-release` with that tag (APK + AAR onto the same release). ## Evidence for the Linux half (unchanged by this PR) - dry run: `release.yml` **#206**, `dry_run=true` — version + aarch64 + x86_64 + publish all `success`, no tag, no release. https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/206 - real run: `release.yml` **#218**, `bump=patch` — tag v0.2.1 created by the workflow (not by hand), both binaries + checksums: `onionwire-aarch64-unknown-linux-gnu` 24507576, `.sha256` 102, `onionwire-x86_64-unknown-linux-gnu` 26835360, `.sha256` 101. - `release.yml` **#216**, `bump=minor` — v0.2.0, same four assets. - Android: `android-release` **#219** was dispatched with `tag=v0.2.1` and is building at the time of writing; the assets attach to the v0.2.1 release.
POST /tags sends no push event on this Forgejo (the v0.2.0 tag it created
produced no android-release run), so the tag is now created locally and
pushed, which does fire android-release.yml's `push: tags` trigger.
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.
sirius merged commit 997b554bf1 into main 2026-09-12 23:11:25 +00:00
sirius deleted branch wt/t_95e0d607 2026-09-12 23:11:43 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/onionwire!63
No description provided.