Skip to content

Commit

Permalink
Update Prev-Step-Ref-Demo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rindeal authored Sep 2, 2024
1 parent 05ec31c commit cec5f6d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/Prev-Step-Ref-Demo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ jobs:
console.log(prevStep)
// {
// "outputs": {
// "value": "STEP_2_VALUE"
// "output1": "STEP_2_VALUE1",
// "output2": "STEP_2_VALUE2",
// "output3": "STEP_2_VALUE3"
// },
// "outcome": "success",
// "conclusion": "success"
Expand All @@ -65,6 +67,11 @@ jobs:
const prevStepOutputs = steps[Object.keys(steps).pop()]
console.log(prevStepOutputs)
// {
// "output1": "STEP_2_VALUE1",
// "output2": "STEP_2_VALUE2",
// "output3": "STEP_2_VALUE3"
// }
core.summary.addHeading('Previous step outputs', '2')
core.summary.addCodeBlock(JSON.stringify(prevStepOutputs, null, " "), 'json')
Expand Down

0 comments on commit cec5f6d

Please sign in to comment.