Skip to content
file-text

GitHub Action

GitHub Actions Job Summary

v0.1.1 Latest version

GitHub Actions Job Summary

file-text

GitHub Actions Job Summary

It generates GitHub Actions Job Summary with Markdown file

Installation

Copy and paste the following snippet into your .yml file.

              

- name: GitHub Actions Job Summary

uses: x-color/github-actions-job-summary@v0.1.1

Learn more about this action in x-color/github-actions-job-summary

Choose a version

GitHub Actions Job Summary

It is GitHub Actions to generate GitHub Actions Job Summary with Markdown file.

Usage

- uses: x-color/github-actions-job-summary@v0.1.0
  with:
    file: <file path>
    vars: |
      <variables>
name description required
file It is a markdown file path true
vars The action fills the variables into the file false

Sample

When you use these files

.github/workflows/main.yaml

on:
  push:
      - main

jobs:
  generate:
    runs-on: ubuntu-latest
    steps:
      - name: time
        id: time
        run: |
          time=$(date)
          echo "::set-output name=time::$time"
      - uses: x-color/github-actions-job-summary@v0.1.0
        with:
          file: .github/workflows/summary.md
          vars: |
            message: sample text
            count: 3
            time: ${{ steps.time.outputs.time }}

.github/workflows/summary.md

# Sample

'{message}' is embedded text.
Count is {count}.
Generated at {time}.

The action generates the following summary.

# Sample

'sample text' is embedded text.
Count is 3.
Generated at Sun Jul 31 00:00:00 UTC 2022..