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 @@ -38,10 +38,22 @@ async function run() {
3838 const jdkFile = core . getInput ( constants . INPUT_JDK_FILE ) ;
3939 const cache = core . getInput ( constants . INPUT_CACHE ) ;
4040 const checkLatest = getBooleanInput ( constants . INPUT_CHECK_LATEST , false ) ;
41- const updateToolchainsOnly = getBooleanInput ( constants . INPUT_UPDATE_TOOLCHAINS_ONLY , false ) ;
42- const overwriteSettings = getBooleanInput ( constants . INPUT_OVERWRITE_SETTINGS , ! updateToolchainsOnly ) ;
43- const updateEnvJavaHome = getBooleanInput ( constants . INPUT_UPDATE_JAVA_HOME , ! updateToolchainsOnly ) ;
44- const addToEnvPath = getBooleanInput ( constants . INPUT_ADD_TO_PATH , ! updateToolchainsOnly ) ;
41+ const updateToolchainsOnly = getBooleanInput (
42+ constants . INPUT_UPDATE_TOOLCHAINS_ONLY ,
43+ false
44+ ) ;
45+ const overwriteSettings = getBooleanInput (
46+ constants . INPUT_OVERWRITE_SETTINGS ,
47+ ! updateToolchainsOnly
48+ ) ;
49+ const updateEnvJavaHome = getBooleanInput (
50+ constants . INPUT_UPDATE_JAVA_HOME ,
51+ ! updateToolchainsOnly
52+ ) ;
53+ const addToEnvPath = getBooleanInput (
54+ constants . INPUT_ADD_TO_PATH ,
55+ ! updateToolchainsOnly
56+ ) ;
4557
4658 let toolchainIds = core . getMultilineInput ( constants . INPUT_MVN_TOOLCHAIN_ID ) ;
4759
You can’t perform that action at this time.
0 commit comments