File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments