mirror of
https://github.com/actions/setup-java.git
synced 2025-04-19 17:36:45 +00:00
Add problem matcher (#4)
This commit is contained in:
parent
9242e91aad
commit
4fa0fd2a23
5 changed files with 26 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue