A GitHub Action that retrieves job summaries and easily converts them to Markdown, PDF, and HTML formats.
This action allows you to:
- Access the job summary content from your GitHub Actions workflow
- Convert job summaries to PDF and/or HTML formats
- Create artifacts for any generated files
- Use the job summary content in subsequent workflow steps
- uses: austenstone/job-summary@v3
id: summary
- run: echo "${{ steps.summary.outputs.job-summary }}"- uses: austenstone/job-summary@v3
with:
create-pdf: true
create-pdf-artifact: true
name: build-report- uses: austenstone/job-summary@v3
with:
create-md: true
create-md-artifact: true
create-pdf: true
create-pdf-artifact: true
create-html: true
create-html-artifact: true
artifact-name: workflow-report- uses: austenstone/job-summary@v3
id: summary
with:
create-html: true
- name: Send email with report
uses: dawidd6/action-send-mail@v6
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.EMAIL_USERNAME }}
password: ${{ secrets.EMAIL_PASSWORD }}
subject: Workflow Report
body: ${{ steps.summary.outputs.job-summary-html }}
html_body: ${{ steps.summary.outputs.job-summary-html }}| Name | Description | Default | Required |
|---|---|---|---|
name |
The name of the generated files | job-summary |
No |
create-md |
Whether to create a markdown file | true |
No |
create-md-artifact |
Create an artifact with the markdown file | false |
No |
create-pdf |
Whether to create a PDF file | false |
No |
create-pdf-artifact |
Create an artifact with the PDF file | false |
No |
create-html |
Whether to create an HTML file | false |
No |
create-html-artifact |
Create an artifact with the HTML file | false |
No |
artifact-name |
Custom name prefix for artifacts | No |
| Name | Description |
|---|---|
job-summary |
The raw job summary content |
job-summary-html |
The job summary as HTML |
pdf-file |
The path to the generated PDF file |
md-file |
The path to the generated Markdown file |
html-file |
The path to the generated HTML file |
-
Combine with notification actions to share your workflow results:
-
Use job summaries to document build status, test results, or deployment information
-
PDF artifacts are useful for permanent records of workflow runs
-
HTML output can be integrated with other reporting systems
For more help with GitHub Actions, see the official documentation.