Write annotations
This commit is contained in:
parent
9f7f081866
commit
6589559455
3 changed files with 1730 additions and 14 deletions
1732
dist/post/index.js
vendored
1732
dist/post/index.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/post/index.js.map
vendored
2
dist/post/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue