Skip to content

Commit 0d5ecc7

Browse files
committed
fix(extensions): refine PR bundle publishing
Flatten PR bundle storage by extension filename and simplify the generated install comment based on the first successful pipeline run. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: a605e7f0-007c-40e9-9e32-0fe36c10599b
1 parent bc653da commit 0d5ecc7

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

eng/pipelines/templates/stages/publish-extension-pr.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ stages:
163163
164164
- template: /eng/pipelines/templates/steps/publish-extension-storage.yml
165165
parameters:
166-
PublishUploadLocations: pr/$(PRNumber)/${{ parameters.SanitizedExtensionId }}
166+
PublishUploadLocations: pr/$(PRNumber)
167167

168168
- job: Comment_On_PR
169169
dependsOn: Publish_For_PR
@@ -188,23 +188,22 @@ stages:
188188

189189
- pwsh: |
190190
$bundleUrl = "$(publish-storage-static-host)/azd/extensions/pr/$(PRNumber)/" +
191-
"${{ parameters.SanitizedExtensionId }}/${{ parameters.SanitizedExtensionId }}.zip"
191+
"${{ parameters.SanitizedExtensionId }}.zip"
192192
$content = @"
193193
<!-- #comment-ext-pr-${{ parameters.SanitizedExtensionId }} -->
194-
### Test ``${{ parameters.AzdExtensionId }}`` PR build
194+
### ${{ parameters.AzdExtensionId }} PR build
195195
196196
> [!NOTE]
197-
> This is an unsigned development build, not an official release. Install it only if you trust this PR.
198-
> The artifact is temporary, and this URL may later point to a newer successful build from this PR.
197+
> This is an unsigned development build. Install it only if you trust this PR.
199198
200-
Install the extension:
199+
**Install the extension:**
201200
202201
``````sh
203202
azd ext install "$bundleUrl"
204203
``````
205204
206205
- **Version:** ``$(EXT_VERSION)``
207-
- **Merge commit:** ``$(Build.SourceVersion)``
206+
- **Merge commit:** $(Build.SourceVersion)
208207
"@
209208
210209
$file = New-TemporaryFile

0 commit comments

Comments
 (0)