Set environment variables correctly for powershell (#1)

Fixes problems with `powershell` not recognizing the environment variables set from `bash`.
This commit is contained in:
Boegie19 2022-08-22 23:01:06 +02:00 committed by GitHub
parent c4827fbec0
commit 24ec8bd92a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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