forked from austenstone/job-summary
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.01 KB
/
usage.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Usage
on:
push:
pull_request:
workflow_dispatch:
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/github-script@v7
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()
- uses: austenstone/job-summary@main
id: usage
with:
name: job-summary
create-pdf-artifact: false
create-md-artifact: false
- run: echo "${{ steps.usage.outputs.job-summary }}"
- run: cat "${{ steps.usage.outputs.md-file }}"
- run: cat "${{ steps.usage.outputs.pdf-file }}"
- run: cat "${{ steps.usage.outputs.html-file }}"