Skip to content

fix(ci): publish OTA updates when a labelled pull request merges - #5130

Draft
KisaneNeko wants to merge 1 commit into
callstack:mainfrom
KisaneNeko:fix/ota-updates-trigger
Draft

KisaneNeko wants to merge 1 commit into
callstack:mainfrom
KisaneNeko:fix/ota-updates-trigger

Conversation

@KisaneNeko

@KisaneNeko KisaneNeko commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

Motivation

While implementing auto deploys of the demo app I noticed there's a job for OTA releases that never actually worked, this PR fixes it. Merging a PR with the example app label will now ship the JS bundle.

NOTE: the build in the stores is on an older SDK than the repo, and runtimeVersion.policy is sdkVersion, so updates published from main can't reach it yet. This starts having a visible effect after the next native release.

Related issue

None, noticed while working on #5118.

Test plan

Can't be verified before merging, since GitHub runs the workflow from main. After this lands, merging a PR labelled example app should produce an actual run instead of a skipped one, and an unlabelled merge should produce no run at all.

The job selected on `github.event.pull_request.labels` but triggered on
`push`, where there is no pull request to read labels from. The condition
was never true, so the job has skipped all 69 times it has been queued
since January.

Trigger on a pull request closing against main instead, so the label is
readable, and check that it was merged rather than just closed.

`pull_request_target` rather than `pull_request` because a fork's pull
request cannot read secrets, and most contributions here come from forks.
Only main is ever checked out, and the token is pinned to read, so no pull
request author's code runs with it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

Found potential problems with the pull request:

  • Screenshot or video evidence is missing. Make sure to include one if it affects the UI.

@KisaneNeko
KisaneNeko marked this pull request as draft September 23, 2026 05:52

This branch has not been deployed

No deployments
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.

1 participant