File tree Expand file tree Collapse file tree
.azure-pipelines/generation-templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,9 +16,11 @@ steps:
1616 } else {
1717 tar -xzf $downloadPath -C $extractPath
1818 }
19- $kiotaBin = Get-ChildItem -Path $extractPath -Filter "kiota" -Recurse -File | Select-Object -First 1
19+ # Match 'kiota' or 'kiota.exe' via BaseName
20+ $kiotaBin = Get-ChildItem -Path $extractPath -Recurse -File | Where-Object { $_.BaseName -eq "kiota" } | Select-Object -First 1
2021 Write-Host "Found Kiota binary at: $($kiotaBin.FullName)"
2122 $stagingDir = "$(Build.ArtifactStagingDirectory)"
2223 New-Item -ItemType Directory -Force -Path $stagingDir | Out-Null
24+ # Always copy as 'kiota' (no extension) so downstream steps are platform-agnostic
2325 Copy-Item -Path $kiotaBin.FullName -Destination (Join-Path $stagingDir "kiota")
2426 displayName : ' Download latest Kiota from GitHub'
You can’t perform that action at this time.
0 commit comments