Skip to content

Commit

Permalink
Add to Windows GitHub Path using GITHUB_PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnelson90 committed Dec 1, 2023
1 parent f0c938a commit e096555
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/8_0_Core_Unit_Tests_Win.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ jobs:
run: "Invoke-WebRequest -Method 'GET' -uri 'https://dl.smallstep.com/gh-release/cli/docs-cli-install/v0.24.4/step_windows_0.24.4_amd64.zip' -Outfile 'C:\\temp\\step_windows_0.24.4_amd64.zip'; tar -oxzf C:\\temp\\step_windows_0.24.4_amd64.zip -C 'C:\\Program Files';"

- name: Add Step CLI to PATH
run: $NewPath = [Environment]::GetEnvironmentVariable("Path") += ";C:\\Program Files\\step_0.24.4\\bin" && [Environment]::SetEnvironmentVariable("GITHUB_PATH", $NewPath)
run: echo "C:\\Program Files\\step_0.24.4\\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append

- name: Validate Step CLI Install
run: dir "C:\\Program Files\\step_0.24.4" && [Environment]::GetEnvironmentVariable("Path") -split ";"
run: dir "C:\\Program Files\\step_0.24.4" && [Environment]::GetEnvironmentVariable("Path") -split ";" && [Environment]::GetEnvironmentVariable("GITHUB_PATH") -split ";"

- name: Pull step-ca Docker Image
run: docker pull jrnelson90/step-ca-win
Expand Down

0 comments on commit e096555

Please sign in to comment.