From 7cba93c1a26b1c1c55b73442816d9d4e2fa0ac03 Mon Sep 17 00:00:00 2001 From: Haixia Cheng Date: Mon, 23 Mar 2026 16:37:53 +0800 Subject: [PATCH] fix: correct output handling for PR URL extraction in Winget manifest update --- .github/workflows/update-winget-manifest.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-winget-manifest.yml b/.github/workflows/update-winget-manifest.yml index e22feac..8350eb9 100644 --- a/.github/workflows/update-winget-manifest.yml +++ b/.github/workflows/update-winget-manifest.yml @@ -93,7 +93,8 @@ jobs: # Extract PR URL from output $prUrl = "" - if ($output -match 'https://github\.com/microsoft/winget-pkgs/pull/\d+') { + $outputText = $output | Out-String + if ($outputText -match 'https://github\.com/microsoft/winget-pkgs/pull/\d+') { $prUrl = $matches[0] Write-Output "PR URL: $prUrl" echo "pr_url=$prUrl" >> $env:GITHUB_OUTPUT