@@ -321,8 +321,12 @@ jobs:
321321 flattenFolders : true
322322
323323 - task : DotNetCoreCLI@2
324- displayName : Install SignTool tool
325- condition : and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], '') )
324+ displayName : Install Sign Client CLI
325+ condition : >-
326+ and(
327+ succeeded(),
328+ eq(variables['UPDATE_DEPENDENTS'], 'false')
329+ )
326330 inputs :
327331 command : custom
328332 custom : tool
@@ -345,11 +349,16 @@ jobs:
345349 condition: >-
346350 and(
347351 succeeded(),
348- eq(variables['System.PullRequest.PullRequestId '], '')
352+ eq(variables['UPDATE_DEPENDENTS '], 'false ')
349353 )
350354
351355 # publish artifacts (only possible if this is not a PR originated on a fork)
352356 - task : PublishPipelineArtifact@1
357+ condition : >-
358+ and(
359+ succeeded(),
360+ ne(variables['UPDATE_DEPENDENTS'], 'true')
361+ )
353362 displayName : Publish deployables artifacts
354363 inputs :
355364 targetPath : ' $(Build.ArtifactStagingDirectory)'
@@ -361,7 +370,8 @@ jobs:
361370 condition : >-
362371 and(
363372 succeeded(),
364- eq(variables['System.PullRequest.PullRequestId'], '')
373+ eq(variables['System.PullRequest.PullRequestId'], ''),
374+ ne(variables['UPDATE_DEPENDENTS'], 'true')
365375 )
366376 continueOnError : true
367377 inputs :
@@ -377,18 +387,17 @@ jobs:
377387 and(
378388 succeeded(),
379389 eq(variables['System.PullRequest.PullRequestId'], ''),
380- startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
381390 eq(variables['UPDATE_DEPENDENTS'], 'false')
382391 )
383392 displayName : Create/Update GitHub release
384393 inputs :
385- action : edit
386394 gitHubConnection : ' github.com_nano-$(System.TeamProject)'
387395 tagSource : userSpecifiedTag
388396 tag : v$(NBGV_NuGetPackageVersion)
389397 title : ' nanoFramework Metadata Processor v$(NBGV_NuGetPackageVersion)'
390398 assets : ' $(Build.ArtifactStagingDirectory)/*'
391399 isPreRelease : false
400+ action : create
392401 isDraft : false
393402 addChangeLog : true
394403 changeLogType : issueBased
0 commit comments