File tree 3 files changed +20
-8
lines changed
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';
10
10
import * as gpg from './gpg' ;
11
11
import { getBooleanInput } from './util' ;
12
12
13
- export async function configureAuthentication (
14
- overwriteSettings : boolean
15
- ) {
13
+ export async function configureAuthentication ( overwriteSettings : boolean ) {
16
14
const id = core . getInput ( constants . INPUT_SERVER_ID ) ;
17
15
const username = core . getInput ( constants . INPUT_SERVER_USERNAME ) ;
18
16
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 {
174
174
if ( this . updateEnvJavaHome ) {
175
175
core . exportVariable ( 'JAVA_HOME' , toolPath ) ;
176
176
} 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
+ ) ;
178
180
}
179
181
if ( this . addToEnvPath ) {
180
182
core . addPath ( path . join ( toolPath , 'bin' ) ) ;
Original file line number Diff line number Diff line change @@ -41,10 +41,22 @@ async function run() {
41
41
constants . INPUT_CACHE_DEPENDENCY_PATH
42
42
) ;
43
43
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
+ ) ;
48
60
49
61
let toolchainIds = core . getMultilineInput ( constants . INPUT_MVN_TOOLCHAIN_ID ) ;
50
62
You can’t perform that action at this time.
0 commit comments