Skip to content

Commit

Permalink
github action log annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Lifeismana committed Nov 9, 2024
1 parent 3a7ab45 commit 6023bb7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions find_svg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if (existsSync(outputPath)) {

for await (const file of GetRecursiveFilesToParse()) {
try {
console.log("Parsing", file);
console.log("::group::Parsing", file);

const code = await readFile(file);
const ast = parse(code, { ecmaVersion: latestEcmaVersion, loc: true });
Expand Down Expand Up @@ -43,8 +43,10 @@ for await (const file of GetRecursiveFilesToParse()) {
}}
});
} catch (e) {
console.error(`Unable to parse "${file}":`, e);
console.error(`::error::Unable to parse "${file}":`, e);
continue;
} finally {
console.log("::endgroup::");
}
}

Expand All @@ -67,7 +69,7 @@ function createSvgBody(node, xml = undefined) {
}
});
} catch (e) {
console.warn("probably some vars that i can do nothing about",e);
console.warn("::warning::probably some vars that i can do nothing about",e);
}
return xml;
}
Expand Down

0 comments on commit 6023bb7

Please sign in to comment.