Repository navigation
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
Draft
openvoiceos-bot wants to merge 1 commit into
openvoiceos-bot wants to merge 1 commit into
Conversation
…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>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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. 🔍 LintHere'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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 todev and so left the merge-publishes-a-release path open. This cut adds the
event test:
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 codeacross the OpenVoiceOS org found no workflow or doc thatreads 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]plusworkflow_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.