inputs-summary

Table of contents

  1. Description
  2. Usage Example
  3. Inputs
  4. 参考

Description

This action logs workflow inputs and generates a Markdown summary to visually organize the provided data.

Usage Example

steps:
  - name: Create Inputs Summary
    uses: composite/inputs-summary@v0 # This is the version of the action
    with:
      workflow-inputs: '{"build_target":"production","test_mode":"enabled"}'

In this example, workflow-inputs are set directly as a JSON string. To dynamically pass inputs from another step, use the toJSON function in your workflow file. This serialization method ensures that the JSON format is correctly handled and parsing errors are avoided.

Inputs

Name Description Default Required
workflow-inputs The inputs provided to the workflow.
Pass inputs context as a JSON string, or use toJSON function to serialize inputs in the workflow file.
n/a yes

参考