Add matcher

This commit is contained in:
Danny McCormick 2019-07-11 09:19:07 -04:00
commit de5d0c1f9a
4 changed files with 23 additions and 0 deletions

View file

@ -1,5 +1,6 @@
import * as core from '@actions/core';
import * as installer from './installer';
import * as path from 'path';
async function run() {
try {
@ -8,6 +9,9 @@ async function run() {
const jdkFile = core.getInput('jdkFile', {required: true});
await installer.getJava(version, arch, jdkFile);
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
} catch (error) {
core.setFailed(error.message);
}