mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
generated and pretty files
This commit is contained in:
parent
b0e5cf270d
commit
dc5f78f54d
4 changed files with 16 additions and 9 deletions
|
@ -7,7 +7,11 @@ import * as io from '@actions/io';
|
|||
export const M2_DIR = '.m2';
|
||||
export const SETTINGS_FILE = 'settings.xml';
|
||||
|
||||
export async function configAuthentication(id: string, username: string, password: string) {
|
||||
export async function configAuthentication(
|
||||
id: string,
|
||||
username: string,
|
||||
password: string
|
||||
) {
|
||||
if (id && username && password) {
|
||||
core.debug(`configAuthentication with ${username} and a password`);
|
||||
const directory: string = path.join(os.homedir(), M2_DIR);
|
||||
|
|
|
@ -25,7 +25,6 @@ async function run() {
|
|||
if (id && username && password) {
|
||||
await auth.configAuthentication(id, username, password);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue