Add artifact-name input to action.yml and update artifact upload logic #183
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: 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 "${{ toJson(steps.usage.outputs) }}" | |
- 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 }}" |