Skip to content

Commit 402b435

Browse files
authored
Merge pull request #25 from pd-rs/custom-url
Add custom installer url support
2 parents 2de7b25 + 848effc commit 402b435

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Also installs arm-gcc gnu toolchain.
1111

1212
- `version` - Specified version of the SDK. Optional. Default value is `latest`.
1313
- `cache` - Cache installer. Default by `true`.
14+
- `custom-url` - Custom URL to the SDK installer. Useful for beta versions. If set, `version` will be ignored.
1415

1516

1617
## Usage Example

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ inputs:
99
default: latest
1010
description: SDK version (ex. `2.0.0` or default `latest`).
1111
required: false
12+
custom-url:
13+
description: Custom URL to the SDK installer. Useful for beta versions.
14+
required: false
1215
cache:
1316
default: "true"
1417
description: Cache installer.
@@ -39,7 +42,7 @@ runs:
3942
URL="https://download.panic.com/playdate_sdk${RUNNER_OS_PART?}PlaydateSDK-${{ inputs.version }}.${OS_EXT?}"
4043
echo "filename=sdk.$OS_EXT" >> $GITHUB_OUTPUT
4144
echo "ext=$OS_EXT" >> $GITHUB_OUTPUT
42-
echo "url=$URL" >> $GITHUB_OUTPUT
45+
echo "url=${{ inputs.custom-url || '$URL' }}" >> $GITHUB_OUTPUT
4346
4447
- name: get direct url
4548
id: direct-url

0 commit comments

Comments
 (0)