Skip to content

Commit 63172ba

Browse files
ryanNexusRyan McCarthy
andauthored
[Petoss 829] Updated Oauth2client package publishing action (#660)
* [PETOSS-829] added action to publish OAUTH2Client nuget package * [PETOSS-829] moved action to publish OAUTH2Client nuget package to its own workflow * [PETOSS-829] updated Oauth2Client to have a seperate version tag so it can be published seperately * [PETOSS-829] updated version to match bump of main sdk so a bump of 0.0.1 in the main will do the same to this package * [PETOSS-829] removed should publish output as not needed * [PETOSS-829] now commits the .csproj file with new version * [PETOSS-829] moved check for changes to explict step * [PETOSS-829] renamed dotnet work flow to match actual purpose * [PETOSS-829] removed trigger on push * [PETOSS-829] added check to nuget for package version * [PETOSS-829] fixing incorrect client package tag name * [PETOSS-829] fixing incorrect client package tag name +1 --------- Co-authored-by: Ryan McCarthy <ryan.mccarthy+xero@xero.com>
1 parent d997434 commit 63172ba

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-Oauth2Client-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
id: check_changes
3636
run: |
3737
# Get last client tag
38-
LAST_CLIENT_TAG=$(git tag -l 'client-*' --sort=-v:refname | head -n 1)
38+
LAST_CLIENT_TAG=$(git tag -l 'OAuthClient-*' --sort=-v:refname | head -n 1)
3939
echo "Found last client tag: $LAST_CLIENT_TAG"
4040
echo "last_client_tag=$LAST_CLIENT_TAG" >> $GITHUB_OUTPUT
4141
@@ -71,7 +71,7 @@ jobs:
7171
exit 0
7272
fi
7373
74-
LAST_VERSION=${LAST_CLIENT_TAG#client-}
74+
LAST_VERSION=${LAST_CLIENT_TAG#OAuthClient-v}
7575
echo "Last OAuth2Client version: $LAST_VERSION (tag: $LAST_CLIENT_TAG)"
7676
7777
# Determine Bump Type from Main SDK tags
@@ -160,8 +160,8 @@ jobs:
160160
git push origin HEAD:master
161161
162162
# Create and push the tag
163-
git tag "client-${{steps.calc_version.outputs.version}}"
164-
git push origin "client-${{steps.calc_version.outputs.version}}"
163+
git tag "OAuthClient-v${{steps.calc_version.outputs.version}}"
164+
git push origin "OAuthClient-v${{steps.calc_version.outputs.version}}"
165165
working-directory: Xero-NetStandard
166166
env:
167167
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)