Skip to content

Fix OAuth2Client publish workflow to match existing OAuthClient-v tag convention#661

Closed
shehanster wants to merge 1 commit into
masterfrom
fix/oauth2client-tag-pattern
Closed

Fix OAuth2Client publish workflow to match existing OAuthClient-v tag convention#661
shehanster wants to merge 1 commit into
masterfrom
fix/oauth2client-tag-pattern

Conversation

@shehanster

Copy link
Copy Markdown

Problem

The OAuth2Client publish workflow run failed trying to push Xero.NetStandard.OAuth2Client.1.6.0.nupkg — a version that has been on nuget.org since May 2022.

Root cause: the Check for changes step looks for tags matching client-*, but the repo's client release tags use the OAuthClient-v* convention (OAuthClient-v1.5.1, OAuthClient-v1.5.3, OAuthClient-v1.6.0). With no matching tag, every run falls into the initial-release path: change detection is skipped (has_changes forced true) and the version falls back to the csproj value (1.6.0) instead of bumping.

Fix

Align the workflow with the existing tag convention in all three places it appears:

  • Tag lookup (L38): match OAuthClient-v*
  • Version parse (L74): strip the OAuthClient-v prefix (including the v, so the bump arithmetic gets a plain 1.6.0)
  • Tag creation (L163-164): tag successful publishes as OAuthClient-v<version>, so subsequent runs find the new tag

Expected behaviour after merge

Next workflow_dispatch run will find OAuthClient-v1.6.0, detect the unpublished OAuth2Client changes since then (IdentityModel 7.0.0 fix from #556, PETOSS-506 dependency bumps from #564), compute 1.6.1 (patch bump), publish it, and tag OAuthClient-v1.6.1.

The workflow looked for client-* tags, but the repo's existing client
release tags use the OAuthClient-v* convention (e.g. OAuthClient-v1.6.0).
With no matching tag found, every run fell into the initial-release path
and tried to republish 1.6.0, which already exists on nuget.org.

Align all three places to the existing convention: the tag lookup, the
version prefix strip (including the v), and the tag created after a
successful publish.
@shehanster

Copy link
Copy Markdown
Author

Superseded by #660 (same fix, merged).

@shehanster shehanster closed this Jul 14, 2026
@shehanster
shehanster deleted the fix/oauth2client-tag-pattern branch July 14, 2026 03:52
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.

1 participant