Skip to content

Commit

Permalink
Add custom installer url support
Browse files Browse the repository at this point in the history
  • Loading branch information
boozook committed Sep 30, 2023
1 parent 2de7b25 commit 848effc
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 848effc

Please sign in to comment.