Skip to content

Commit

Permalink
separate path setupprint
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen committed Jul 18, 2023
1 parent 9100e62 commit aff1b11
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,26 @@ runs:
echo "${HOME}/.jbang/bin" >> $GITHUB_PATH
${HOME}/.jbang/bin/jbang version
echo "::endgroup::"
- name: 'Setup JBang'
shell: bash
if: runner.os != 'Windows'
run: |
echo "::group::🔧 Setup JBang"
echo "${HOME}/.jbang/bin" >> $GITHUB_PATH
${HOME}/.jbang/bin/jbang version
echo "::endgroup::"
- name: 'Download JBang (Windows)'
shell: pwsh
if: runner.os == 'Windows'
run: |
echo "::group::⬇️ Download JBang"
iex "& { $(iwr https://ps.jbang.dev) } app setup"
echo "::endgroup::"
- name: 'Setup JBang (Windows)'
shell: pwsh
if: runner.os == 'Windows'
run: |
echo "::group::🔧 Setup JBang"
echo "$HOME\.jbang\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
& $HOME\.jbang\bin\jbang.ps1 version
echo $GITHUB_PATH
echo "::endgroup::"
echo "::endgroup::"

0 comments on commit aff1b11

Please sign in to comment.