Export main action functions, ease reuse

This commit is contained in:
Paulo Lieuthier 2021-05-11 11:47:45 -03:00
commit 66243ade0a
4 changed files with 4 additions and 2 deletions

View file

@ -2592,6 +2592,7 @@ function run() {
}
});
}
exports.default = run;
run();

1
dist/setup/index.js vendored
View file

@ -35713,6 +35713,7 @@ function run() {
}
});
}
exports.default = run;
run();

View file

@ -2,7 +2,7 @@ import * as core from '@actions/core';
import * as gpg from './gpg';
import * as constants from './constants';
async function run() {
export default async function run() {
if (core.getInput(constants.INPUT_GPG_PRIVATE_KEY, { required: false })) {
core.info('Removing private key from keychain');
try {

View file

@ -6,7 +6,7 @@ import * as path from 'path';
import { getJavaDistribution } from './distributions/distribution-factory';
import { JavaInstallerOptions } from './distributions/base-models';
async function run() {
export default async function run() {
try {
const version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, { required: true });