Skip to content

Commit 6be5762

Browse files
committed
Fix summary task
1 parent 70933c2 commit 6be5762

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

eng/pipelines/templates/stages/archetype-autorest-preview.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,11 +496,11 @@ stages:
496496
-PRLabels 'Do Not Merge'
497497
498498
- pwsh: |
499-
$markdownSummary = @"
499+
$summaryPath = "$(System.DefaultWorkingDirectory)/summary.md"
500+
$summaryMarkdown = @"
500501
**PR:** [Azure/$(sdkRepositoryName)#$(Submitted.PullRequest.Number)](https://github.com/Azure/$(sdkRepositoryName)/pull/$(Submitted.PullRequest.Number))
501502
**Title:** $(PullRequestTitle)
502503
"@
503-
504-
$markdownSummary | Out-File "$(System.DefaultWorkingDirectory)/summary.md"
505-
Write-Host "##vso[task.addattachment type=Distributedtask.Core.Summary;name=Pull Request Created;)/summary.md"
504+
$summaryMarkdown | Out-File $summaryPath
505+
Write-Host "##vso[task.addattachment type=Distributedtask.Core.Summary;name=Pull Request Created;]$summaryPath"
506506
displayName: Write PR Data to build summary

0 commit comments

Comments
 (0)