Skip to content

Conversation

@dscho
Copy link
Member

@dscho dscho commented Nov 12, 2025

I had already tried to achieve the same in #807, but neither winget nor homebrew patch worked as intended. This here PR hopefully fixes that (we will see in the v2.52.0 release...).

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 <johannes.schindelin@gmx.de>
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 <johannes.schindelin@gmx.de>
@dscho dscho requested a review from mjcheetham November 12, 2025 12:29
@dscho dscho self-assigned this Nov 12, 2025
Copy link
Member

@mjcheetham mjcheetham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this still doesn't work then my only other thought is that Write-Host may not be captured by the Actions runner, in which case Write-Output would need needed instead.

@dscho
Copy link
Member Author

dscho commented Nov 12, 2025

If this still doesn't work then my only other thought is that Write-Host may not be captured by the Actions runner, in which case Write-Output would need needed instead.

Good point @mjcheetham! But this PR replaces a Write-Host call that [did add something](https://github.com/microsoft/git/actions/runs/18935514407#:~:text=Submitting v2.51.2.vfs.0.0) to the v2.51.2.vfs.0.0 run's summary page (just not the information I wanted, hence this fix).

@dscho dscho merged commit fc3733b into vfs-2.52.0-rc1 Nov 12, 2025
289 of 300 checks passed
@dscho dscho deleted the really-mention-winget-and-homebrew-pr-urls-in-summary branch November 12, 2025 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants