Merge remote-tracking branch 'origin/main' into dev/snickler/net8-upgrade

This commit is contained in:
Jeremy Sinclair 2023-11-14 13:28:21 -05:00
commit 051baa8e33

View File

@ -27,7 +27,7 @@ jobs:
}
catch {
# Fall back to the latest commit otherwise.
$commit = "$(system.pullRequest.sourceCommitId)";
$commit = "$(build.sourceVersion)";
$gitHubCommit = Invoke-RestMethod -Method Get "https://api.github.com/repos/microsoft/PowerToys/commits/$commit"
if(([array]($githubCommit.files.filename) -notmatch ".md|.txt").Length -eq 0) {
Write-Host '##vso[task.setvariable variable=skipBuild;isOutput=true]Yes'