File tree 4 files changed +10
-2
lines changed
4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 36
36
github-token : ' ${{ secrets.GITHUB_TOKEN }}'
37
37
include-legend : ' ${{ github.event.inputs.include-legend }}'
38
38
include-finish-node : ' ${{ github.event.inputs.include-finish-node }}'
39
- dry-run : ' ${{ github.event.inputs.dry-run }}'
39
+ dry-run : ' ${{ github.event.inputs.dry-run }}'
40
+
41
+ - run : |
42
+ '${{ steps.build-issue-dependencies-graph.mermaid-diagram }}' > $GITHUB_OUTPUT
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ inputs:
23
23
description : ' Set this option to not update root issue with updated mermaid diagram and only print new diagram to output'
24
24
required : false
25
25
default : ' false'
26
+ outputs :
27
+ mermaid-diagram :
28
+ description : ' Rendered markdown with mermaid diagram'
26
29
runs :
27
30
using : ' node16'
28
31
main : ' dist/index.js'
Original file line number Diff line number Diff line change @@ -281,6 +281,7 @@ const run = async () => {
281
281
const graph = graphBuilder.getGraph();
282
282
const renderedContent = mermaidRender.render(graph);
283
283
core.info("Rendering dependency graph into mermaid...");
284
+ core.setOutput("mermaid-diagram", renderedContent);
284
285
core.startGroup("Mermaid diagram");
285
286
core.info(renderedContent);
286
287
core.endGroup();
Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ const run = async (): Promise<void> => {
32
32
const renderedContent = mermaidRender . render ( graph ) ;
33
33
34
34
core . info ( "Rendering dependency graph into mermaid..." ) ;
35
+ core . setOutput ( "mermaid-diagram" , renderedContent ) ;
35
36
core . startGroup ( "Mermaid diagram" ) ;
36
37
core . info ( renderedContent ) ;
37
38
core . endGroup ( ) ;
38
-
39
+
39
40
core . info ( "Preparing updated root issue content..." ) ;
40
41
const updatedIssueContent = issueContentParser . replaceIssueContent (
41
42
rootIssue ,
You can’t perform that action at this time.
0 commit comments