Skip to content

Commit eeba25b

Browse files
jshigetomiTravisEz13
authored andcommitted
Add version in description and pass store task on failure (PowerShell#26885)
1 parent 6276c6d commit eeba25b

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

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

Lines changed: 12 additions & 3 deletions
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:
@@ -99,7 +106,8 @@ jobs:
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

Comments
 (0)