job summaries #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / job summariesInvalid workflow file
|
||
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() |