mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Use java-version (#14)
This commit is contained in:
parent
cbc5ae3642
commit
475978becf
4 changed files with 15 additions and 6 deletions
|
@ -21,7 +21,10 @@ const path = __importStar(require("path"));
|
|||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
const version = core.getInput('version', { required: true });
|
||||
let version = core.getInput('version');
|
||||
if (!version) {
|
||||
version = core.getInput('java-version', { required: true });
|
||||
}
|
||||
const arch = core.getInput('architecture', { required: true });
|
||||
const jdkFile = core.getInput('jdkFile', { required: false }) || '';
|
||||
yield installer.getJava(version, arch, jdkFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue