Skip to content

Commit 7311378

Browse files
authored
Add version in description and pass store task on failure (#26885)
1 parent a6e0d94 commit 7311378

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.pipelines/templates/release-MSIX-Publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,15 @@ jobs:
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:
@@ -101,6 +108,7 @@ jobs:
101108
- task: MS-RDX-MRO.windows-store-publish.publish-task.store-publish@3
102109
displayName: 'Publish StoreBroker Package (Stable/LTS)'
103110
condition: and(ne('${{ parameters.skipMSIXPublish }}', 'true'), or(eq(variables['STABLE'], 'true'), eq(variables['LTS'], 'true')))
111+
continueOnError: true
104112
inputs:
105113
serviceEndpoint: 'StoreAppPublish-Stable'
106114
appId: '$(AppID)'
@@ -114,6 +122,7 @@ jobs:
114122
- task: MS-RDX-MRO.windows-store-publish.publish-task.store-publish@3
115123
displayName: 'Publish StoreBroker Package (Preview)'
116124
condition: and(ne('${{ parameters.skipMSIXPublish }}', 'true'), eq(variables['PREVIEW'], 'true'))
125+
continueOnError: true
117126
inputs:
118127
serviceEndpoint: 'StoreAppPublish-Preview'
119128
appId: '$(AppID)'

0 commit comments

Comments
 (0)