5959
6060 $json.listings.'en-us'.baseListing.releaseNotes = $message
6161
62+ # Add PowerShell version to the top of the description
63+ $description = $json.listings.'en-us'.baseListing.description
64+ $version = "$(ReleaseTag)"
65+ $updatedDescription = "Version: $version`n`n$description"
66+ $json.listings.'en-us'.baseListing.description = $updatedDescription
67+ Write-Verbose -Verbose "Updated description: $updatedDescription"
68+
6269 $json | ConvertTo-Json -Depth 100 | Set-Content $jsonPath -Encoding UTF8
63- displayName : ' Update Release Notes in JSON '
70+ displayName : ' Add Changelog Link and Version Number to SBJSON '
6471
6572 - task : PowerShell@2
6673 inputs :
99106
100107 - task : MS-RDX-MRO.windows-store-publish.publish-task.store-publish@3
101108 displayName : ' Publish StoreBroker Package (Stable/LTS)'
102- condition : and(ne('${{ parameters.skipMSIXPublish }}', 'true'), or(eq('$(STABLE)', 'true'), eq('$(LTS)', 'true')))
109+ condition : and(ne('${{ parameters.skipMSIXPublish }}', 'true'), or(eq(variables['STABLE'], 'true'), eq(variables['LTS'], 'true')))
110+ continueOnError : true
103111 inputs :
104112 serviceEndpoint : ' StoreAppPublish-Stable'
105113 appId : ' $(AppID)'
@@ -112,7 +120,8 @@ jobs:
112120
113121 - task : MS-RDX-MRO.windows-store-publish.publish-task.store-publish@3
114122 displayName : ' Publish StoreBroker Package (Preview)'
115- condition : and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq('$(PREVIEW)', 'true'))
123+ condition : and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq(variables['PREVIEW'], 'true'))
124+ continueOnError : true
116125 inputs :
117126 serviceEndpoint : ' StoreAppPublish-Preview'
118127 appId : ' $(AppID)'
0 commit comments