From 6cfbd84d397649a9dd10b273dbdae4a03bc2ff20 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 12 Nov 2025 13:17:32 +0100 Subject: [PATCH 1/2] fixup! homebrew: add GitHub workflow to release Cask Let's _really_ display the PR URL in the workflow run's summary page (I did make that change, and it was tagged as v1.5, but I had forgotten to compile the Typescript, therefore the JavaScript code still did the old things and hid the PR URL in the run's logs). Signed-off-by: Johannes Schindelin --- .github/workflows/release-homebrew.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-homebrew.yml b/.github/workflows/release-homebrew.yml index febd8e5579b15b..9242331b18ae61 100644 --- a/.github/workflows/release-homebrew.yml +++ b/.github/workflows/release-homebrew.yml @@ -40,7 +40,7 @@ jobs: sed s/^/result=/ >$GITHUB_OUTPUT && rm token - name: Update scalar Cask - uses: mjcheetham/update-homebrew@v1.5 + uses: mjcheetham/update-homebrew@v1.5.1 with: token: ${{ steps.token.outputs.result }} tap: microsoft/git From aa301512941a4b04b6894a26eb4f9d9c7458710a Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 12 Nov 2025 13:25:44 +0100 Subject: [PATCH 2/2] fixup! Adding winget workflows I tried to change this workflow before so that it would show the winget PR URL in the workflow run's summary page. But I messed up, not realizing that `wingetcreate.exe submit` would output _multiple_ lines, and therefore simply prefixing the output with `::notice::...` would only elevate the first line of that output to the run's summary page (and naturally, the PR URL is not part of that). Bite the bullet and parse the output to extract the URL, and then show that as intended. Signed-off-by: Johannes Schindelin --- .github/workflows/release-winget.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-winget.yml b/.github/workflows/release-winget.yml index 708cf654198d76..42fddedddaa1ec 100644 --- a/.github/workflows/release-winget.yml +++ b/.github/workflows/release-winget.yml @@ -78,6 +78,8 @@ jobs: # Submit the manifest to the winget-pkgs repository $manifestDirectory = "$PWD\manifests\m\Microsoft\Git\$version" - Write-Host -NoNewLine "::notice::Submitting ${env:TAG_NAME} to winget... " - .\wingetcreate.exe submit -t "$(Get-Content token.txt)" $manifestDirectory + $output = & .\wingetcreate.exe submit -t "$(Get-Content token.txt)" $manifestDirectory + Write-Host $output + $url = ($output | Select-String -Pattern 'https://\S+' | ForEach-Object { $_.Matches.Value })[0] + Write-Host "::notice::Submitted ${env:TAG_NAME} to winget as $url" shell: powershell