Skip to content

Commit 2ea5274

Browse files
author
Ryan McCarthy
committed
[PETOSS-829] now commits the .csproj file with new version
1 parent 6e8564a commit 2ea5274

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
outputs:
2020
# Used to conditionally run publish steps and notifications
2121
client_version: ${{steps.calc_version.outputs.version}}
22-
23-
2422
permissions:
2523
contents: write
2624
pull-requests: write
@@ -134,11 +132,20 @@ jobs:
134132
run: dotnet nuget push ./Xero.NetStandard.OAuth2Client/bin/Release/Xero.NetStandard.OAuth2Client.${{steps.calc_version.outputs.version}}.nupkg --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json
135133
working-directory: Xero-NetStandard
136134

137-
- name: Create client tag
135+
- name: Commit, Push and Tag
138136
if: steps.calc_version.outputs.should_publish == 'true'
139137
run: |
140138
git config user.name "github-actions[bot]"
141139
git config user.email "github-actions[bot]@users.noreply.github.com"
140+
141+
# Commit the version bump
142+
git add ./Xero.NetStandard.OAuth2Client/Xero.NetStandard.OAuth2Client.csproj
143+
git commit -m "Bump OAuth2Client version to ${{steps.calc_version.outputs.version}}"
144+
145+
# Push the commit to master
146+
git push origin HEAD:master
147+
148+
# Create and push the tag
142149
git tag "client-${{steps.calc_version.outputs.version}}"
143150
git push origin "client-${{steps.calc_version.outputs.version}}"
144151
working-directory: Xero-NetStandard

0 commit comments

Comments
 (0)