Skip to content

Commit

Permalink
Use implicit environment variable instead of boolean coercion
Browse files Browse the repository at this point in the history
  • Loading branch information
hallipr committed Oct 2, 2024
1 parent c877711 commit 342e7cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion eng/pipelines/templates/steps/analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,3 @@ steps:
arguments: >
-Toolchain '$(Toolchain)'
-PackageInfoPath '$(Build.ArtifactStagingDirectory)/PackageInfo'
-SkipPackageAnalysis:('$(NoPackagesChanged)' -eq 'true')
4 changes: 3 additions & 1 deletion eng/scripts/Analyze-Code.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ Invoke-LoggedCommand "cargo +$Toolchain doc --workspace --no-deps"

$verifyDependenciesScript = Join-Path $RepoRoot 'eng' 'scripts' 'verify-dependencies.rs' -Resolve

if (!$SkipPackageAnalysis) {
$skipPackages = $SkipPackageAnalysis -or $env:NoPackagesChanged

if (!$skipPackages) {
if (!(Test-Path $PackageInfoPath)) {
Write-Error "Package info path '$PackageInfoPath' does not exist."
exit 1
Expand Down

0 comments on commit 342e7cf

Please sign in to comment.