A GitHub Action to display workflow_dispatch input values in a table format on GitHub Job Summary.
- Automatically retrieves workflow_dispatch inputs
- Displays inputs in an easy-to-read table format on Job Summary
- No
actions/checkoutrequired
name: Display Workflow Inputs
on:
workflow_dispatch:
inputs:
environment:
description: 'Deployment Environment'
required: true
type: choice
options:
- development
- staging
- production
version:
description: 'Version Number'
required: true
type: string
debug:
description: 'Debug Mode'
required: false
type: boolean
default: false
jobs:
display-inputs:
runs-on: ubuntu-latest
steps:
- name: Display workflow inputs
uses: VeyronSakai/display-inputs-action@v0.1This action fetches the workflow file using GitHub API, so actions/checkout is not required.
When you run this action, a table like the following will be displayed in the Job Summary:
| Name | Description | Value |
|---|---|---|
| environment | Deployment Environment | production |
| version | Version Number | 1.2.3 |
| debug | Debug Mode | true |
MIT License - See LICENSE for details.