Skip to content

Commit 187726a

Browse files
committed
fix: add dbc installation directory to PATH on Windows
After installation, update PATH to include dbc CLI location for verification and persist to GitHub Actions PATH for subsequent workflow steps
1 parent 1c38c81 commit 187726a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

install-windows.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,24 @@ try {
3434
Remove-Item -Path $tempScript -ErrorAction SilentlyContinue
3535
}
3636

37+
# Add dbc installation directory to PATH
38+
$dbcInstallPath = Join-Path $env:USERPROFILE ".local\bin"
39+
if (Test-Path $dbcInstallPath) {
40+
$env:Path = "$dbcInstallPath;$env:Path"
41+
}
42+
3743
# Verify installation
3844
$dbcPath = Get-Command dbc -ErrorAction SilentlyContinue
3945
if (-not $dbcPath) {
4046
Write-Error "dbc CLI installation failed - command not found"
4147
exit 1
4248
}
4349

50+
# Add to GitHub Actions PATH for subsequent steps
51+
if ($env:GITHUB_PATH) {
52+
$dbcInstallPath | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
53+
}
54+
4455
# Output version for verification
4556
dbc --version
4657

0 commit comments

Comments
 (0)