Skip to content

Commit

Permalink
Merge pull request #3 from frederikb/main
Browse files Browse the repository at this point in the history
  • Loading branch information
maxandersen authored Apr 26, 2024
2 parents 41dd580 + fd097fd commit 913c46b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ runs:
- name: 'Download JBang'
shell: bash
if: runner.os != 'Windows'
env:
VERSION_INPUT: ${{ inputs.version }}
run: |
echo "::group::⬇️ Download JBang"
if [[ "$VERSION_INPUT" != "latest" ]]; then
export JBANG_DOWNLOAD_VERSION=$VERSION_INPUT
fi
curl -Ls https://sh.jbang.dev | bash -s - app setup
echo "${HOME}/.jbang/bin" >> $GITHUB_PATH
${HOME}/.jbang/bin/jbang version
Expand All @@ -40,8 +45,13 @@ runs:
- name: 'Download JBang (Windows)'
shell: pwsh
if: runner.os == 'Windows'
env:
VERSION_INPUT: ${{ inputs.version }}
run: |
echo "::group::⬇️ Download JBang"
if ($env:VERSION_INPUT -ne "latest") {
$env:JBANG_DOWNLOAD_VERSION = $env:VERSION_INPUT
}
iex "& { $(iwr https://ps.jbang.dev) } app setup"
echo "::endgroup::"
- name: 'Setup JBang (Windows)'
Expand Down

0 comments on commit 913c46b

Please sign in to comment.