mirror of
https://github.com/actions/setup-go.git
synced 2025-06-28 07:53:43 +00:00
Add problem matcher
This commit is contained in:
parent
886b49b2b3
commit
5f2246e3c5
4 changed files with 28 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
import * as core from '@actions/core';
|
||||
// import * as installer from './installer';
|
||||
import * as installer from './installer';
|
||||
import * as path from 'path';
|
||||
|
||||
async function run() {
|
||||
try {
|
||||
|
@ -9,11 +10,13 @@ async function run() {
|
|||
//
|
||||
const version = core.getInput('version');
|
||||
if (version) {
|
||||
// await installer.getGo(version);
|
||||
await installer.getGo(version);
|
||||
}
|
||||
|
||||
// TODO: setup proxy from runner proxy config
|
||||
// TODO: problem matchers registered
|
||||
|
||||
const matchersPath = path.join(__dirname, '..', '.github');
|
||||
console.log(`##[add-matcher]${path.join(matchersPath, 'go.json')}`);
|
||||
} catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue