From 848effc0a0c9678481bfd74e1e39854afaa0bbc2 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Sun, 1 Oct 2023 03:24:56 +0400 Subject: [PATCH] Add custom installer url support --- README.md | 1 + action.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 94b8a46..4dd16df 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Also installs arm-gcc gnu toolchain. - `version` - Specified version of the SDK. Optional. Default value is `latest`. - `cache` - Cache installer. Default by `true`. +- `custom-url` - Custom URL to the SDK installer. Useful for beta versions. If set, `version` will be ignored. ## Usage Example diff --git a/action.yml b/action.yml index b219fc8..7490850 100644 --- a/action.yml +++ b/action.yml @@ -9,6 +9,9 @@ inputs: default: latest description: SDK version (ex. `2.0.0` or default `latest`). required: false + custom-url: + description: Custom URL to the SDK installer. Useful for beta versions. + required: false cache: default: "true" description: Cache installer. @@ -39,7 +42,7 @@ runs: 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 + echo "url=${{ inputs.custom-url || '$URL' }}" >> $GITHUB_OUTPUT - name: get direct url id: direct-url