introducing problem matchers

This commit is contained in:
softprops
2020-01-05 20:34:10 -05:00
parent a6bcfcc41f
commit 64bce4b041
4 changed files with 64 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as rustup from './rustup';
import * as os from 'os';
import * as path from 'path';
async function run() {
try {
@@ -30,6 +30,10 @@ async function run() {
await exec.exec('rustup', ['default', version]);
}
const matchersPath = path.join(__dirname, '..', '.github');
console.log(`##[add-matcher]${path.join(matchersPath, 'go.json')}`);
} catch (error) {
core.setFailed(error.message);
}