mirror of
https://github.com/CompeyDev/setup-rokit.git
synced 2024-12-12 12:40:36 +00:00
Set environment variables correctly for powershell
(#1)
Fixes problems with `powershell` not recognizing the environment variables set from `bash`.
This commit is contained in:
parent
c4827fbec0
commit
24ec8bd92a
1 changed files with 10 additions and 1 deletions
11
action.yml
11
action.yml
|
@ -44,7 +44,16 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
unzip aftman*.zip
|
unzip aftman*.zip
|
||||||
./aftman self-install
|
./aftman self-install
|
||||||
echo "$HOME/.aftman/bin" >> $GITHUB_PATH
|
shell: bash
|
||||||
|
|
||||||
|
- name: Set environment variable
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
run: echo "$HOME/.aftman/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
shell: powershell
|
||||||
|
|
||||||
|
- name: Set environment variable
|
||||||
|
if: runner.os != 'Windows'
|
||||||
|
run: echo "$HOME/.aftman/bin" >> $GITHUB_PATH
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Install tools
|
- name: Install tools
|
||||||
|
|
Loading…
Reference in a new issue