Summary
summary
property of ActionBase implements
FileTextProperty connecting it to file
specified in Github Step Summary.
In this file your action can return some markdown to include in the summary of the step.
You use the property just like str
, for example
class MyAction(ActionBase):
def main(self):
self.summary.text += (
self.render(
"### Hello {{ inputs['name'] }}!\n"
"Have a nice day!"
)
)
Here we use render() to create text for the summary.
In the Github workflow summary it will look something like this:
Hello John!
Have a nice day!