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

@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(require("@actions/core"));
const exec = __importStar(require("@actions/exec"));
const rustup = __importStar(require("./rustup"));
const path = __importStar(require("path"));
function run() {
return __awaiter(this, void 0, void 0, function* () {
try {
@@ -38,6 +39,8 @@ function run() {
]);
yield 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);