Skip to content

feat: dispatch asobi_lua pin bump on release - #315

Merged
Taure merged 1 commit into
mainfrom
fix-asobi-276
Aug 3, 2026
Merged

feat: dispatch asobi_lua pin bump on release#315
Taure merged 1 commit into
mainfrom
fix-asobi-276

Conversation

@Taure

@Taure Taure commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Downstream asobi_lua pins asobi by git ref and only refreshes that pin on its nightly schedule, so a fix released here can sit unpublished for up to a day (widgrensit/asobi_lua#103, mitigations 2 and 3 shipped in asobi_lua#115). This is the missing option 1: push the news instead of making asobi_lua poll for it.

What changed

  • scripts/dispatch-asobi-lua-pin-bump.sh fires repository_dispatch (event_type=asobi-released, client_payload[tag]) at widgrensit/asobi_lua.
  • release.yml runs it as a follow-on job after the release job.
  • scripts/test/dispatch-asobi-lua-pin-bump-test.sh covers the branches with gh stubbed on PATH; scripts.yml runs the script tests in CI (ci.yml delegates wholesale to erlang-ci, which only knows rebar3).

Why a job and not a step

The release is a reusable workflow (Taure/erlang-ci), so no step can be inserted into it, and it exports no output saying whether it actually tagged - it reports success on every merge to main, including the ones git-cliff decides need no bump. The script therefore gates on a release tag actually pointing at HEAD, so ordinary merges dispatch nothing.

Follow-ups outside this repo

  • A repo secret ASOBI_LUA_DISPATCH_TOKEN (PAT or app token with write access to widgrensit/asobi_lua) has to be added; the default GITHUB_TOKEN cannot dispatch across repositories. Until it exists the job logs a ::warning:: and passes, so releases never go red on a missing secret.
  • asobi_lua's bump-asobi-pin.yml needs repository_dispatch: types: [asobi-released] alongside its schedule and workflow_dispatch triggers. Until then the dispatch is accepted and ignored, and the nightly remains the only path.

Closes #276

Downstream asobi_lua pins asobi by git ref and refreshes it on a nightly
schedule, so a fix released here can wait up to a day before reaching the
published image (asobi_lua#103). Fire a repository_dispatch at asobi_lua the
moment a release is tagged instead.

The reusable erlang-ci release workflow takes no extra steps and reports
success even when no bump was due, so the dispatch runs as a follow-on job
gated on a tag actually pointing at HEAD.

Closes #276
@Taure
Taure merged commit 784246f into main Aug 3, 2026
16 checks passed
@Taure
Taure deleted the fix-asobi-276 branch August 3, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add repository_dispatch to trigger asobi_lua's bump-asobi-pin on release

1 participant