Skip to content

Release: promote develop to main (IGNORE_GITHUB_REF prerelease fix)#199

Merged
ptr727 merged 3 commits into
mainfrom
develop
Jun 27, 2026
Merged

Release: promote develop to main (IGNORE_GITHUB_REF prerelease fix)#199
ptr727 merged 3 commits into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Promotes develop to main to deploy the corrected prerelease-tagging fix (#198) so the next publish exercises it.

Merge commit (not squash). A publish-release.yml dispatch after this lands will confirm the develop leg publishes a true pre-release.

🤖 Generated with Claude Code

NBGV's GitHub Actions provider reads the reserved GITHUB_REF (which a step env
cannot override); set IGNORE_GITHUB_REF=true so it versions from the
checked-out branch instead. Supersedes the ineffective GITHUB_REF override from
#196. CI-verified: develop checkout -> 1.4.x-g<sha> prerelease, main -> stable.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 26, 2026 23:45

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

Promotes the develop branch to main to ship the workflow change from #198 that fixes NBGV prerelease tagging in the publish matrix by using IGNORE_GITHUB_REF instead of attempting to override reserved GITHUB_REF.

Changes:

  • Updates get-version-task.yml to set IGNORE_GITHUB_REF=true for dotnet/nbgv@master and removes the previously threaded branch input.
  • Removes branch passthrough to get-version-task.yml from the reusable build workflows (build-release-task.yml, build-nugetlibrary-task.yml).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
.github/workflows/get-version-task.yml Switch NBGV ref detection to IGNORE_GITHUB_REF and drop the branch input.
.github/workflows/build-release-task.yml Stops passing branch into the version-task call.
.github/workflows/build-nugetlibrary-task.yml Stops passing branch into the version-task call.

Comment thread .github/workflows/get-version-task.yml
Comment thread .github/workflows/build-nugetlibrary-task.yml
Smoke builds check out the PR head detached, so NBGV always yields a prerelease
version; on a main-base PR that tripped validate-release and blocked every
develop->main promotion carrying a build target. Skip the gate for smoke builds
(they never publish). CI-verified for both main and develop bases.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
build-nugetlibrary checks out a pinned SHA (detached HEAD), where NBGV with
IGNORE_GITHUB_REF saw no branch and built the main leg's package as a prerelease
mismatching its clean release tag. Re-add the branch input + git checkout -B
<branch> so NBGV sees the logical branch from a detached SHA. CI-verified:
main->1.4.3.nupkg (clean), develop->1.4.4-g<sha>.nupkg (prerelease). Caught by
Copilot on the promotion PR.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 27, 2026 04:06

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

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

Comment thread .github/workflows/get-version-task.yml
Comment thread .github/workflows/build-release-task.yml
@ptr727 ptr727 merged commit 39f9f55 into main Jun 27, 2026
11 checks passed
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