@@ -112,7 +112,7 @@ jobs:
112112 GH_TOKEN : ${{secrets.GITHUB_TOKEN}}
113113
114114 - name : Update csproj version
115- if : steps.calc_version .outputs.should_publish == 'true'
115+ if : steps.check_changes .outputs.has_changes == 'true'
116116 run : |
117117 NEW_VERSION="${{steps.calc_version.outputs.version}}"
118118 sed -i "s/<Version>.*<\/Version>/<Version>$NEW_VERSION<\/Version>/" \
@@ -121,33 +121,33 @@ jobs:
121121 working-directory : Xero-NetStandard
122122
123123 - name : Setup .NET
124- if : steps.calc_version .outputs.should_publish == 'true'
124+ if : steps.check_changes .outputs.has_changes == 'true'
125125 uses : actions/setup-dotnet@v4
126126 with :
127127 dotnet-version : 8.0.x
128128
129129 - name : Restore dependencies
130- if : steps.calc_version .outputs.should_publish == 'true'
130+ if : steps.check_changes .outputs.has_changes == 'true'
131131 run : dotnet restore
132132 working-directory : Xero-NetStandard
133133
134134 - name : Build
135- if : steps.calc_version .outputs.should_publish == 'true'
135+ if : steps.check_changes .outputs.has_changes == 'true'
136136 run : dotnet build --no-restore
137137 working-directory : Xero-NetStandard
138138
139139 - name : Create OAuth2Client Package for Nuget.org
140- if : steps.calc_version .outputs.should_publish == 'true'
140+ if : steps.check_changes .outputs.has_changes == 'true'
141141 run : dotnet pack ./Xero.NetStandard.OAuth2Client/Xero.NetStandard.OAuth2Client.csproj
142142 working-directory : Xero-NetStandard
143143
144144 - name : Publish OAuth2Client Package to Nuget.org
145- if : steps.calc_version .outputs.should_publish == 'true'
145+ if : steps.check_changes .outputs.has_changes == 'true'
146146 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
147147 working-directory : Xero-NetStandard
148148
149149 - name : Commit, Push and Tag
150- if : steps.calc_version .outputs.should_publish == 'true'
150+ if : steps.check_changes .outputs.has_changes == 'true'
151151 run : |
152152 git config user.name "github-actions[bot]"
153153 git config user.email "github-actions[bot]@users.noreply.github.com"
0 commit comments