magmanu / github-actions-docs

Github Action to generate github-actions docs for a composite action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

github-actions-docs

Github Action to generate github-actions docs for a composite action.

Usage

Before using the action, if you are using update OUTPUT_MODE (To inject generated docs into an existing markdown file), ensure you add the following (uncommented) comments blocks to your markdown files to replace.

# <!-- BEGIN_ACTION_DOCS -->
# <!-- END_ACTION_DOCS -->

github-actions-docs

Generate GitHub action docs for action

inputs

Title Required Type Default Description
ACTION_FILE_NAME True string action.yaml The name of the file to be processed
OUTPUT_FILE_NAME True string README.md The file that the output report will be written to
OUTPUT_MODE True string update The output mode, [update/overwrite]. Update will be inserted after a line containing <!-- BEGIN_ACTION_DOCS -->, overwrite will overwrite the whole file

Local development

To develop locally, install requirements to ensure the .env file is used in the project root:

pip3 install -r requirements.txt

Permissions

This action requires the following permissions:

permissions:
  contents: write

About

Github Action to generate github-actions docs for a composite action


Languages

Language:Python 98.8%Language:Makefile 1.2%