mirror of
https://github.com/graalvm/setup-graalvm.git
synced 2025-12-06 07:48:06 +08:00
Make parsing of components a bit more robust.
Suggested by @michael-simons
This commit is contained in:
4
dist/main/index.js
generated
vendored
4
dist/main/index.js
generated
vendored
@@ -71002,7 +71002,9 @@ function run() {
|
||||
const gdsToken = core.getInput(c.INPUT_GDS_TOKEN);
|
||||
const javaVersion = core.getInput(c.INPUT_JAVA_VERSION, { required: true });
|
||||
const componentsString = core.getInput(c.INPUT_COMPONENTS);
|
||||
const components = componentsString.length > 0 ? componentsString.split(',') : [];
|
||||
const components = componentsString.length > 0
|
||||
? componentsString.split(',').map(x => x.trim())
|
||||
: [];
|
||||
const setJavaHome = core.getInput(c.INPUT_SET_JAVA_HOME) === 'true';
|
||||
const cache = core.getInput(c.INPUT_CACHE);
|
||||
const enableCheckForUpdates = core.getInput(c.INPUT_CHECK_FOR_UPDATES) === 'true';
|
||||
|
||||
@@ -19,7 +19,9 @@ async function run(): Promise<void> {
|
||||
const javaVersion = core.getInput(c.INPUT_JAVA_VERSION, {required: true})
|
||||
const componentsString: string = core.getInput(c.INPUT_COMPONENTS)
|
||||
const components: string[] =
|
||||
componentsString.length > 0 ? componentsString.split(',') : []
|
||||
componentsString.length > 0
|
||||
? componentsString.split(',').map(x => x.trim())
|
||||
: []
|
||||
const setJavaHome = core.getInput(c.INPUT_SET_JAVA_HOME) === 'true'
|
||||
const cache = core.getInput(c.INPUT_CACHE)
|
||||
const enableCheckForUpdates =
|
||||
|
||||
Reference in New Issue
Block a user