From 1b80e3742eca3d37048bdc6b6c6a2c85c7c78584 Mon Sep 17 00:00:00 2001 From: Shehan Marino <18304392+shehanster@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:00:11 +1000 Subject: [PATCH] Fix OAuth2Client publish workflow to use OAuthClient-v tag convention 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. --- .github/workflows/publish-Oauth2Client-package.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-Oauth2Client-package.yml b/.github/workflows/publish-Oauth2Client-package.yml index 5c0e8249..49204089 100644 --- a/.github/workflows/publish-Oauth2Client-package.yml +++ b/.github/workflows/publish-Oauth2Client-package.yml @@ -35,7 +35,7 @@ jobs: id: check_changes run: | # Get last client tag - LAST_CLIENT_TAG=$(git tag -l 'client-*' --sort=-v:refname | head -n 1) + LAST_CLIENT_TAG=$(git tag -l 'OAuthClient-v*' --sort=-v:refname | head -n 1) echo "Found last client tag: $LAST_CLIENT_TAG" echo "last_client_tag=$LAST_CLIENT_TAG" >> $GITHUB_OUTPUT @@ -71,7 +71,7 @@ jobs: exit 0 fi - LAST_VERSION=${LAST_CLIENT_TAG#client-} + LAST_VERSION=${LAST_CLIENT_TAG#OAuthClient-v} echo "Last OAuth2Client version: $LAST_VERSION (tag: $LAST_CLIENT_TAG)" # Determine Bump Type from Main SDK tags @@ -160,8 +160,8 @@ jobs: git push origin HEAD:master # Create and push the tag - git tag "client-${{steps.calc_version.outputs.version}}" - git push origin "client-${{steps.calc_version.outputs.version}}" + git tag "OAuthClient-v${{steps.calc_version.outputs.version}}" + git push origin "OAuthClient-v${{steps.calc_version.outputs.version}}" working-directory: Xero-NetStandard env: GH_TOKEN: ${{secrets.GITHUB_TOKEN}}