File tree Expand file tree Collapse file tree 3 files changed +20
-8
lines changed
Expand file tree Collapse file tree 3 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ import * as constants from './constants';
1010import * as gpg from './gpg' ;
1111import { getBooleanInput } from './util' ;
1212
13- export async function configureAuthentication (
14- overwriteSettings : boolean
15- ) {
13+ export async function configureAuthentication ( overwriteSettings : boolean ) {
1614 const id = core . getInput ( constants . INPUT_SERVER_ID ) ;
1715 const username = core . getInput ( constants . INPUT_SERVER_USERNAME ) ;
1816 const password = core . getInput ( constants . INPUT_SERVER_PASSWORD ) ;
Original file line number Diff line number Diff line change @@ -174,7 +174,9 @@ export abstract class JavaBase {
174174 if ( this . updateEnvJavaHome ) {
175175 core . exportVariable ( 'JAVA_HOME' , toolPath ) ;
176176 } else {
177- core . info ( `Skip updating env.JAVA_HOME according to ${ INPUT_UPDATE_JAVA_HOME } ` ) ;
177+ core . info (
178+ `Skip updating env.JAVA_HOME according to ${ INPUT_UPDATE_JAVA_HOME } `
179+ ) ;
178180 }
179181 if ( this . addToEnvPath ) {
180182 core . addPath ( path . join ( toolPath , 'bin' ) ) ;
Original file line number Diff line number Diff line change @@ -41,10 +41,22 @@ async function run() {
4141 constants . INPUT_CACHE_DEPENDENCY_PATH
4242 ) ;
4343 const checkLatest = getBooleanInput ( constants . INPUT_CHECK_LATEST , false ) ;
44- const updateToolchainsOnly = getBooleanInput ( constants . INPUT_UPDATE_TOOLCHAINS_ONLY , false ) ;
45- const overwriteSettings = getBooleanInput ( constants . INPUT_OVERWRITE_SETTINGS , ! updateToolchainsOnly ) ;
46- const updateEnvJavaHome = getBooleanInput ( constants . INPUT_UPDATE_JAVA_HOME , ! updateToolchainsOnly ) ;
47- const addToEnvPath = getBooleanInput ( constants . INPUT_ADD_TO_PATH , ! updateToolchainsOnly ) ;
44+ const updateToolchainsOnly = getBooleanInput (
45+ constants . INPUT_UPDATE_TOOLCHAINS_ONLY ,
46+ false
47+ ) ;
48+ const overwriteSettings = getBooleanInput (
49+ constants . INPUT_OVERWRITE_SETTINGS ,
50+ ! updateToolchainsOnly
51+ ) ;
52+ const updateEnvJavaHome = getBooleanInput (
53+ constants . INPUT_UPDATE_JAVA_HOME ,
54+ ! updateToolchainsOnly
55+ ) ;
56+ const addToEnvPath = getBooleanInput (
57+ constants . INPUT_ADD_TO_PATH ,
58+ ! updateToolchainsOnly
59+ ) ;
4860
4961 let toolchainIds = core . getMultilineInput ( constants . INPUT_MVN_TOOLCHAIN_ID ) ;
5062
You can’t perform that action at this time.
0 commit comments