Compare commits

...

2 Commits

Author SHA1 Message Date
Jaime Bernardo
fce88ffe4b Bogus change 2023-11-14 17:44:12 +00:00
Jaime Bernardo
cb6b7961e9 [ci]Fix precheck getting commit id in the fallback 2023-11-14 17:36:45 +00:00
2 changed files with 2 additions and 1 deletions

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'

View File

@@ -7,3 +7,4 @@ Resources:
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns