ci: convert release builder to workflow_dispatch (v0.31)#4077
Merged
sydorovdmytro merged 2 commits intoJul 21, 2026
Conversation
Convert the release builder to workflow_dispatch (the GitHub Release is now a pipeline output created by goreleaser, not a trigger) and drive e2e and unit-test validation off workflow_run of the Release builder completing. On the release path change detection is skipped, jobs run only for a green build, and the built tag is checked out. Previous-tag derivation is made branch-local. Closes DEVOPS-1050
Legacy lines keep their existing validators untouched: release validation is handled by main's workflow_run validators, gated to new (>= v0.37) lines. This branch only converts the builder release.yaml (release-as-output + dispatch).
sydorovdmytro
marked this pull request as ready for review
July 21, 2026 14:00
Piotr1215
approved these changes
Jul 21, 2026
sydorovdmytro
deleted the
dmytrosydorov/devops-1050-release-dispatch-v0.31
branch
July 21, 2026 14:14
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.
Part of the DEVOPS-1050 phase-4 fan-out (loft-sh/vcluster legacy line). Builder-only conversion.
What
Converts only the builder
release.yaml:on: release:[created]→on: workflow_dispatch(release-as-output: goreleaser creates the release at the end of a green build, dispatched by the sharedvcluster-releaseaction via--ref <tag>).github.event.release.*→github.ref_name.previous_tag(git describe --match 'v*' <sha>^).Validators intentionally unchanged
Legacy lines get no post-build validation wired — this matches current behavior (no regression).
workflow_runonly ever fires from the default branch, so a legacy-branch validator trigger would never fire anyway. Release validation for new lines (>= v0.37) is handled bymain's validators, gated to skip legacy tags (reference PR #4072).Actionlint-clean. Draft until the GitHub Actions incident clears and CI can run.
Note
Medium Risk
Changes how production releases are triggered and how goreleaser changelog/compare tags are chosen; mis-dispatch or wrong previous_tag could affect release artifacts, though scope is CI-only.
Overview
Converts the vCluster release builder so it no longer runs on
release:created. It isworkflow_dispatchonly, invoked by the sharedvcluster-releaseaction with--ref <tag>so the tag ref drives the build and goreleaser creates the GitHub Release as output, avoiding monorepo OSS releases re-firing the builder.Tag/version inputs switch from
github.event.release.*togithub.ref_namefor checkout and the stableMinimumVersionTagcheck.previous_tagfor goreleaser is now branch-local:git describeon the commit’s parent withv*match, instead of the repo-wide “second newest” tag—so release-branch builds get the correct prior version.Reviewed by Cursor Bugbot for commit 0a9f603. Bugbot is set up for automated code reviews on this repo. Configure here.