Skip to content

job summaries

job summaries #1

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

Check failure on line 14 in .github/workflows/job_summaries.yml

View workflow run for this annotation

GitHub Actions / job summaries

Invalid workflow file

The workflow is not valid. .github/workflows/job_summaries.yml (Line: 14, Col: 5): Unexpected value 'runs on' .github/workflows/job_summaries.yml (Line: 14, Col: 5): Required property is missing: runs-on
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()