Skip to content

fix(ci): publish a release only from a dispatch on dev, in the other three builders - #185

Draft
openvoiceos-bot wants to merge 1 commit into
devfrom
ci/guard-release-on-dev-push
Draft

openvoiceos-bot wants to merge 1 commit into
devfrom
ci/guard-release-on-dev-push

Conversation

@openvoiceos-bot

@openvoiceos-bot openvoiceos-bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Auto-generated by Claude Sonnet 5 (claude-sonnet-5) via Claude Code — NOT human-reviewed. Verify before acting.

Five workflows in this repository create a public GitHub release. #178 guards
two of them, build_hybrid_lang_images.yml and build_offline_lang_images.yml.
This guards the other three: build_lite_lang_images.yml,
build_raspOVOS_full.yml and build_raspOVOS_lite.yml. A guard on two of five
leaves the other three publishing, so neither pull request completes the
change alone.

Every one of these builders runs on a push to dev as well as on
workflow_dispatch, and none of their release jobs carried a draft field or a
condition. A green push to dev cut a public raspOVOS release dated that day,
from every builder the push touched. Decision
raspovos-dev-push-publishes-release settled this on 2026-09-28: a release is
cut by hand, dispatch-only. The first cut of this branch copied #178's guard
verbatim, if: github.ref == 'refs/heads/dev', which is true on a push to
dev and so left the merge-publishes-a-release path open. This cut adds the
event test:

if: github.ref == 'refs/heads/dev' && github.event_name == 'workflow_dispatch'

A push to dev now builds the images and publishes nothing. A dispatch on a
pull request branch builds the images and publishes nothing. Only a dispatch
on dev publishes, and only a person starts that.

build_lite_lang_images.yml has two publishing jobs, create-release and
upload-images, and both carry the guard. build_raspOVOS_full.yml and
build_raspOVOS_lite.yml carry it on check-release-or-create only, and that is
enough rather than an omission: their upload-image job is gated on
needs.check-release-or-create.outputs.release_id, so when the release job
skips, the output is empty and the upload skips with it. On dev today
build_raspOVOS_lite.yml's check-release-or-create carries no if: at all and
uploads with draft: false.

I checked the branch head, a3b9d75, against current dev rather than trust
the earlier draft. All three files carry the event test on their
release-creating job. actionlint reports no finding over the workflow tree.
gh search code across the OpenVoiceOS org found no workflow or doc that
reads these job names or their outputs, so a rename here breaks no consumer.
Lint and ShellCheck both pass on the current head. I did not verify the
change on a live GitHub Actions run: no builder runs on a pull request, so
the guard is read from the file, not from a dispatch.

No builder runs on a pull request: all five are push: branches: [dev] plus
workflow_dispatch. This pull request itself triggers no image build.

This and #178 together close every release path. Until both land, a dispatch
of an unguarded builder on any ref still publishes, so no builder should be
dispatched.

…three builders

The port of #178's guard to the three builders it does not cover:
build_lite_lang_images.yml, build_raspOVOS_full.yml and
build_raspOVOS_lite.yml. Five workflows in this repository create a public
release, and a guard on two of them leaves the other three publishing.

Re-cut to match #178 after decision raspovos-dev-push-publishes-release,
answered dispatch-only on 2026-09-28. The first cut copied #178 verbatim,
`if: github.ref == 'refs/heads/dev'`, which is TRUE on a push to dev and so
left the merge-publishes-a-release path open. The guard now tests the event
as well as the branch:

    if: github.ref == 'refs/heads/dev' && github.event_name == 'workflow_dispatch'

The two lang-image jobs both carry it. In the two base builders one guard is
enough and that is deliberate: `upload-image` is gated on
`needs.check-release-or-create.outputs.release_id`, so when the release job
is skipped the output is empty and the upload skips with it.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 29, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown
Contributor

The results are in! Let's see how your PR is doing. 📊

I've aggregated the results of the automated checks for this PR below.

🔍 Lint

Here's the latest update from the automation pipeline. 🏗️

✅ actionlint: 10 workflow file(s), no finding


Signed, sealed, and delivered by the OVOS bot. 📧

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.

2 participants