Skip to content

Commit

Permalink
Merge pull request #25 from pd-rs/custom-url
Browse files Browse the repository at this point in the history
Add custom installer url support
  • Loading branch information
boozook authored Sep 30, 2023
2 parents 2de7b25 + 848effc commit 402b435
Show file tree
Hide file tree
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
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

0 comments on commit 402b435

Please sign in to comment.