We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c38c81 commit 187726aCopy full SHA for 187726a
1 file changed
install-windows.ps1
@@ -34,13 +34,24 @@ try {
34
Remove-Item -Path $tempScript -ErrorAction SilentlyContinue
35
}
36
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
+
43
# Verify installation
44
$dbcPath = Get-Command dbc -ErrorAction SilentlyContinue
45
if (-not $dbcPath) {
46
Write-Error "dbc CLI installation failed - command not found"
47
exit 1
48
49
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
55
# Output version for verification
56
dbc --version
57
0 commit comments