Skip to content

Enable Go auto-release on main CI - #27151

Merged
Ray Chen (raych1) merged 1 commit into
mainfrom
users/raych1/support-auto-release
Jul 9, 2026
Merged

Enable Go auto-release on main CI#27151
Ray Chen (raych1) merged 1 commit into
mainfrom
users/raych1/support-auto-release

Conversation

@raych1

@raych1 Ray Chen (raych1) commented Jul 8, 2026

Copy link
Copy Markdown
Member

Summary

  • include Go release stages for internal post-merge IndividualCI builds so auto-release can run after a PR merges to main
  • add the shared AutoReleasePrepare stage before Release on main CI builds
  • require the existing NeedToRelease gate plus auto-release label and changed-package signals for main CI, while preserving the manual release path

Allow internal post-merge CI runs to include the Go release stages and gate automatic releases on the auto-release prepare stage outputs. Preserve manual release behavior by keeping non-CI release runs gated only on the existing release checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enables automated Go package releases to run on post-merge main CI builds (Build.Reason = IndividualCI), whereas previously the Prerelease/Release stages only ran on Manual/empty build reasons or forced IncludeRelease. It wires a new shared AutoReleasePrepare stage into the Go release template and gates the Release stage on that stage's outputs (auto-release label present + changed-package signal) in addition to the existing NeedToRelease changelog/tag gate, while leaving the manual release path unchanged.

Changes:

  • Add IndividualCI to the build-reason condition in archetype-sdk-client.yml so the Go release template is included on post-merge main CI.
  • Conditionally insert an AutoReleasePrepare stage (from a shared eng/common template) before Release on IndividualCI builds.
  • Make the Release stage additionally depend on AutoReleasePrepare and require its AutoReleaseLabelPresent / HasAutoReleaseArtifacts outputs on IndividualCI, preserving the original gate for other build reasons.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
eng/pipelines/templates/jobs/archetype-sdk-client.yml Adds IndividualCI to the build-reason gate so the release template is included on post-merge main CI.
eng/pipelines/templates/jobs/archetype-go-release.yml Adds a conditional AutoReleasePrepare stage and extends the Release stage's dependsOn/condition to require its auto-release outputs on IndividualCI.

Comment thread eng/pipelines/templates/jobs/archetype-go-release.yml
@raych1
Ray Chen (raych1) merged commit 9f62b00 into main Jul 9, 2026
16 checks passed
@raych1
Ray Chen (raych1) deleted the users/raych1/support-auto-release branch July 9, 2026 00:26
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.

Trigger SDK release automatically after PR is merged

4 participants