mirror of
https://github.com/actions/setup-java.git
synced 2025-06-30 04:54:14 +00:00
Export main action functions, ease reuse
This commit is contained in:
parent
0443912ed7
commit
66243ade0a
4 changed files with 4 additions and 2 deletions
1
dist/cleanup/index.js
vendored
1
dist/cleanup/index.js
vendored
|
@ -2592,6 +2592,7 @@ function run() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
exports.default = run;
|
||||||
run();
|
run();
|
||||||
|
|
||||||
|
|
||||||
|
|
1
dist/setup/index.js
vendored
1
dist/setup/index.js
vendored
|
@ -35713,6 +35713,7 @@ function run() {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
exports.default = run;
|
||||||
run();
|
run();
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ import * as core from '@actions/core';
|
||||||
import * as gpg from './gpg';
|
import * as gpg from './gpg';
|
||||||
import * as constants from './constants';
|
import * as constants from './constants';
|
||||||
|
|
||||||
async function run() {
|
export default async function run() {
|
||||||
if (core.getInput(constants.INPUT_GPG_PRIVATE_KEY, { required: false })) {
|
if (core.getInput(constants.INPUT_GPG_PRIVATE_KEY, { required: false })) {
|
||||||
core.info('Removing private key from keychain');
|
core.info('Removing private key from keychain');
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import * as path from 'path';
|
||||||
import { getJavaDistribution } from './distributions/distribution-factory';
|
import { getJavaDistribution } from './distributions/distribution-factory';
|
||||||
import { JavaInstallerOptions } from './distributions/base-models';
|
import { JavaInstallerOptions } from './distributions/base-models';
|
||||||
|
|
||||||
async function run() {
|
export default async function run() {
|
||||||
try {
|
try {
|
||||||
const version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
|
const version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
|
||||||
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, { required: true });
|
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, { required: true });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue