Skip to content

Commit

Permalink
fix missed path part
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Sep 12, 2023
1 parent cdeba87 commit d51b7b4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@ runs:
steps:
- name: prepare
id: cfg
if: runner.os != 'Windows'
shell: bash
run: |
OS_EXT="${{ (runner.os == 'Linux' && 'tar.gz') || (runner.os == 'macOS' && 'zip') || ( runner.os == 'Windows' && 'exe') }}"
RUNNER_OS_PART="${{ (runner.os == 'Linux' && '/Linux') || (runner.os == 'macOS' && '') || ( runner.os == 'Windows' && '/Windows') }}"
URL="https://download.panic.com/playdate_sdk${RUNNER_OS_PART?}/PlaydateSDK-${{ inputs.version }}.${OS_EXT?}"
RUNNER_OS_PART="${{ (runner.os == 'Linux' && '/Linux/') || (runner.os == 'macOS' && '/') || ( runner.os == 'Windows' && '/Windows/') }}"
URL="https://download.panic.com/playdate_sdk${RUNNER_OS_PART?}PlaydateSDK-${{ inputs.version }}.${OS_EXT?}"
echo "filename=sdk.$OS_EXT" >> $GITHUB_OUTPUT
echo "ext=$OS_EXT" >> $GITHUB_OUTPUT
echo "url=$URL" >> $GITHUB_OUTPUT
- name: get direct url
id: direct-url
if: runner.os != 'Windows'
shell: bash
run: |
trim() {
Expand Down

0 comments on commit d51b7b4

Please sign in to comment.