1
0
Fork 0
mirror of synced 2026-06-05 15:58:19 +00:00

Write annotations

This commit is contained in:
Varun Sharma 2021-12-18 18:05:32 -08:00
commit 6589559455
3 changed files with 1730 additions and 14 deletions

1732
dist/post/index.js vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,5 @@
import * as fs from "fs";
import * as core from "@actions/core";
(async () => {
if (process.platform !== "linux") {
@ -38,6 +39,15 @@ import * as fs from "fs";
var content = fs.readFileSync(status, "utf-8");
console.log(content);
}
// write annotations
var annotationsFile = "/home/agent/annotation.log";
if (fs.existsSync(annotationsFile)) {
var content = fs.readFileSync(status, "utf-8");
content.split(/\r?\n/).forEach((line) => {
core.error(line);
});
}
})();
function sleep(ms) {