File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments