🚀 use @actions/core to output values
This commit is contained in:
@@ -19,12 +19,12 @@ import { generateContributionSnake } from "./generateContributionSnake";
|
|||||||
if (svg) {
|
if (svg) {
|
||||||
fs.mkdirSync(path.dirname(format.svg), { recursive: true });
|
fs.mkdirSync(path.dirname(format.svg), { recursive: true });
|
||||||
fs.writeFileSync(format.svg, svg);
|
fs.writeFileSync(format.svg, svg);
|
||||||
console.log(`::set-output name=svg_out_path::${format.svg}`);
|
core.setOutput("svg_out_path", format.svg);
|
||||||
}
|
}
|
||||||
if (gif) {
|
if (gif) {
|
||||||
fs.mkdirSync(path.dirname(format.gif), { recursive: true });
|
fs.mkdirSync(path.dirname(format.gif), { recursive: true });
|
||||||
fs.writeFileSync(format.gif, gif);
|
fs.writeFileSync(format.gif, gif);
|
||||||
console.log(`::set-output name=gif_out_path::${format.gif}`);
|
core.setOutput("gif_out_path", format.gif);
|
||||||
}
|
}
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
core.setFailed(`Action failed with "${e.message}"`);
|
core.setFailed(`Action failed with "${e.message}"`);
|
||||||
|
|||||||
Reference in New Issue
Block a user