Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom installer url support #25

Merged
merged 1 commit into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down