Skip to content

Commit

Permalink
Update from npm run format to fix prettier check
Browse files Browse the repository at this point in the history
- missed in initial commit
- took re-built dist from GH actions
  • Loading branch information
mhoffrog committed Dec 15, 2024
1 parent 63af83a commit 3ca6914
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 3 additions & 1 deletion src/distributions/base-installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down
20 changes: 16 additions & 4 deletions src/setup-java.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3ca6914

Please sign in to comment.