@@ -144,14 +144,19 @@ def actionPublishNuget():
144
144
PublishNuget .init ()
145
145
for target in Settings .targets :
146
146
for platform in Settings .targetPlatforms :
147
- Logger .printStartActionMessage ("Publish Nuget for " + target + ' ' + platform )
148
- result = PublishNuget .run ()
149
- if result != NO_ERROR :
150
- Logger .printEndActionMessage ('Failed to publish NuGet package ' + target + ' ' + platform ,ColoredFormatter .RED )
151
- #Terminate script execution if stopExecutionOnError is set to True in userdef
152
- shouldEndOnError (result )
147
+ if not Summary .checkIfCreateNugetFailed (target , platform ):
148
+ Logger .printStartActionMessage ("Publish Nuget for " + target + ' ' + platform )
149
+ result = PublishNuget .run ()
150
+ if result != NO_ERROR :
151
+ Logger .printEndActionMessage ('Failed to publish NuGet package ' + target + ' ' + platform ,ColoredFormatter .RED )
152
+ #Terminate script execution if stopExecutionOnError is set to True in userdef
153
+ shouldEndOnError (result )
154
+ else :
155
+ Logger .printEndActionMessage ('Publish Nuget for ' + target + ' ' + platform )
153
156
else :
154
- Logger .printEndActionMessage ('Publish Nuget for ' + target + ' ' + platform )
157
+ Logger .printColorMessage ('Publish Nuget cannot run because Create Nuget has failed for ' + target + ' ' + platform ,ColoredFormatter .YELLOW )
158
+ Logger .printEndActionMessage ('Publish Nuget not run for ' + target + ' ' + platform ,ColoredFormatter .YELLOW )
159
+
155
160
156
161
def actionReleaseNotes ():
157
162
ReleaseNotes .select_input ()
@@ -174,14 +179,20 @@ def actionUploadBackup():
174
179
175
180
def actionUpdatePublishedSample ():
176
181
UpdateSample .init ()
177
- Logger .printStartActionMessage ("Update published sample" )
178
- result = UpdateSample .run ()
179
- if result != NO_ERROR :
180
- Logger .printEndActionMessage ('Failed to update sample!' )
181
- #Terminate script execution if stopExecutionOnError is set to True in userdef
182
- shouldEndOnError (result )
182
+ if not Summary .checkIfCreateNugetFailed ('webrtc' , 'winuwp' ):
183
+ Logger .printStartActionMessage ("Update published sample" )
184
+ result = UpdateSample .run ()
185
+ if result != NO_ERROR :
186
+ Logger .printEndActionMessage ('Failed to update sample!' )
187
+ #Terminate script execution if stopExecutionOnError is set to True in userdef
188
+ shouldEndOnError (result )
189
+ else :
190
+ Logger .printEndActionMessage ('Update published sample' )
183
191
else :
184
- Logger .printEndActionMessage ('Update published sample' )
192
+ Logger .printColorMessage ('Update published sample cannot run because Create Nuget has failed' ,ColoredFormatter .YELLOW )
193
+ Logger .printEndActionMessage ('Update published sample not run' ,ColoredFormatter .YELLOW )
194
+
195
+
185
196
186
197
def shouldEndOnError (error ):
187
198
"""
0 commit comments