Skip to content

Commit

Permalink
GHA windows: fix PATH on cache-hit
Browse files Browse the repository at this point in the history
  • Loading branch information
kit-ty-kate committed Jun 12, 2024
1 parent 2b57c61 commit 4f03ad5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
if: steps.cache-opam.outputs.cache-hit != 'true'
run: |
Invoke-Expression "& { $(Invoke-RestMethod https://raw.githubusercontent.com/kit-ty-kate/opam/windows-installer.debug/shell/install.ps1) } -OpamBinDir 'D:\opam\bin' -NoSetPath -NoAdmin"
"D:\opam\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Init opam
if: steps.cache-opam.outputs.cache-hit != 'true'
Expand All @@ -42,6 +41,10 @@ jobs:
D:\opamroot
key: ${{ steps.cache-opam.outputs.cache-primary-key }}

- name: Add opam to PATH
run: |
"D:\opam\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
Expand Down

0 comments on commit 4f03ad5

Please sign in to comment.