From d51b7b453c9cd4f9bf530c8c1a25134b6ec5e406 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Wed, 13 Sep 2023 03:53:27 +0400 Subject: [PATCH] fix missed path part --- action.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/action.yml b/action.yml index e61ff75..c0281ab 100644 --- a/action.yml +++ b/action.yml @@ -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() {