From 3ca69145beb01be8aaf2a9e995ae2c2369bf3f4c Mon Sep 17 00:00:00 2001 From: Markus Hoffrogge Date: Wed, 8 Nov 2023 11:59:16 +0100 Subject: [PATCH] Update from npm run format to fix prettier check - missed in initial commit - took re-built dist from GH actions --- src/auth.ts | 4 +--- src/distributions/base-installer.ts | 4 +++- src/setup-java.ts | 20 ++++++++++++++++---- 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/auth.ts b/src/auth.ts index 66cdd9a..4eed4d0 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -10,9 +10,7 @@ import * as constants from './constants'; import * as gpg from './gpg'; import {getBooleanInput} from './util'; -export async function configureAuthentication( - overwriteSettings: boolean -) { +export async function configureAuthentication(overwriteSettings: boolean) { const id = core.getInput(constants.INPUT_SERVER_ID); const username = core.getInput(constants.INPUT_SERVER_USERNAME); const password = core.getInput(constants.INPUT_SERVER_PASSWORD); diff --git a/src/distributions/base-installer.ts b/src/distributions/base-installer.ts index d4589bc..c786b28 100644 --- a/src/distributions/base-installer.ts +++ b/src/distributions/base-installer.ts @@ -174,7 +174,9 @@ export abstract class JavaBase { if (this.updateEnvJavaHome) { core.exportVariable('JAVA_HOME', toolPath); } else { - core.info(`Skip updating env.JAVA_HOME according to ${INPUT_UPDATE_JAVA_HOME}`); + core.info( + `Skip updating env.JAVA_HOME according to ${INPUT_UPDATE_JAVA_HOME}` + ); } if (this.addToEnvPath) { core.addPath(path.join(toolPath, 'bin')); diff --git a/src/setup-java.ts b/src/setup-java.ts index 0aaa46f..01a9037 100644 --- a/src/setup-java.ts +++ b/src/setup-java.ts @@ -41,10 +41,22 @@ async function run() { constants.INPUT_CACHE_DEPENDENCY_PATH ); const checkLatest = getBooleanInput(constants.INPUT_CHECK_LATEST, false); - const updateToolchainsOnly = getBooleanInput(constants.INPUT_UPDATE_TOOLCHAINS_ONLY, false); - const overwriteSettings = getBooleanInput(constants.INPUT_OVERWRITE_SETTINGS, !updateToolchainsOnly); - const updateEnvJavaHome = getBooleanInput(constants.INPUT_UPDATE_JAVA_HOME, !updateToolchainsOnly); - const addToEnvPath = getBooleanInput(constants.INPUT_ADD_TO_PATH, !updateToolchainsOnly); + const updateToolchainsOnly = getBooleanInput( + constants.INPUT_UPDATE_TOOLCHAINS_ONLY, + false + ); + const overwriteSettings = getBooleanInput( + constants.INPUT_OVERWRITE_SETTINGS, + !updateToolchainsOnly + ); + const updateEnvJavaHome = getBooleanInput( + constants.INPUT_UPDATE_JAVA_HOME, + !updateToolchainsOnly + ); + const addToEnvPath = getBooleanInput( + constants.INPUT_ADD_TO_PATH, + !updateToolchainsOnly + ); let toolchainIds = core.getMultilineInput(constants.INPUT_MVN_TOOLCHAIN_ID);