mirror of
https://github.com/actions/setup-java.git
synced 2025-04-20 01:46:46 +00:00
Dont fail if jdkFile not set until checking cache
This commit is contained in:
parent
609f104c5b
commit
012e07621e
5 changed files with 11 additions and 3 deletions
|
@ -23,7 +23,7 @@ function run() {
|
|||
try {
|
||||
const version = core.getInput('version', { required: true });
|
||||
const arch = core.getInput('architecture', { required: true });
|
||||
const jdkFile = core.getInput('jdkFile', { required: true });
|
||||
const jdkFile = core.getInput('jdkFile', { required: false }) || '';
|
||||
yield installer.getJava(version, arch, jdkFile);
|
||||
const matchersPath = path.join(__dirname, '..', '.github');
|
||||
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue