Skip to content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Job Summary Action

A GitHub Action that retrieves job summaries and easily converts them to Markdown, PDF, and HTML formats.

Overview

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

Usage

Basic: Just Get the Job Summary

- uses: austenstone/job-summary@v3
  id: summary
- run: echo "${{ steps.summary.outputs.job-summary }}"

Generate PDF and Create Artifact

- uses: austenstone/job-summary@v3
  with:
    create-pdf: true
    create-pdf-artifact: true
    name: build-report

Generate All Formats with Custom Artifact Names

- 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

Generate HTML and Use in Email Notification

- 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 }}

➡️ Inputs

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

⬅️ Outputs

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

💡 Tips

📚 Further Information

For more help with GitHub Actions, see the official documentation.

About

Get and convert job summaries to Md, PDF, and HTML

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

10 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages