mirror of
https://code.forgejo.org/actions/setup-go
synced 2025-06-22 18:08:03 +02:00
Add problem matcher
This commit is contained in:
parent
886b49b2b3
commit
5f2246e3c5
4 changed files with 28 additions and 7 deletions
|
@ -16,7 +16,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const core = __importStar(require("@actions/core"));
|
||||
// import * as installer from './installer';
|
||||
const installer = __importStar(require("./installer"));
|
||||
const path = __importStar(require("path"));
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
try {
|
||||
|
@ -26,10 +27,11 @@ function run() {
|
|||
//
|
||||
const version = core.getInput('version');
|
||||
if (version) {
|
||||
// await installer.getGo(version);
|
||||
yield 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