mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Default architecture param to os.arch()
This commit is contained in:
parent
5b36705a13
commit
73887824bb
1 changed files with 2 additions and 1 deletions
|
@ -6,12 +6,13 @@ import { restore } from './cache';
|
|||
import * as path from 'path';
|
||||
import { getJavaDistribution } from './distributions/distribution-factory';
|
||||
import { JavaInstallerOptions } from './distributions/base-models';
|
||||
import * as os from 'os';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
const version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
|
||||
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, { required: true });
|
||||
const architecture = core.getInput(constants.INPUT_ARCHITECTURE);
|
||||
const architecture = core.getInput(constants.INPUT_ARCHITECTURE) || os.arch();
|
||||
const packageType = core.getInput(constants.INPUT_JAVA_PACKAGE);
|
||||
const jdkFile = core.getInput(constants.INPUT_JDK_FILE);
|
||||
const cache = core.getInput(constants.INPUT_CACHE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue