Skip to content

job summaries

job summaries #2

Workflow file for this run

name: job summaries
on: workflow_dispatch
jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: echo1
run: echo '### Hello world! :rocket:' >> $GITHUB_STEP_SUMMARY
- name: echo2
run: echo '### Love this featire :medal_sports:' >>GITHUB_STEP_SUMMARY
job2:
runs-on: ubuntu-latest
steps:
- name: Write Summary from Action
uses: actions/[email protected]
with:
script: |
await core.summary
.addHeading('Test Results')
.addTable([
[{data: 'File', header: true}, {data: 'Result', header: true}],
['foo.js', 'Pass'],
['bar.js', 'Fail'],
['test.js', 'Pass']
])
.addLink('View staging deployment', 'https://github.com')
.write()