diff --git a/action.yml b/action.yml index 37be449..9c58166 100644 --- a/action.yml +++ b/action.yml @@ -44,7 +44,16 @@ runs: run: | unzip aftman*.zip ./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 - name: Install tools