JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 179
  • Score
    100M100P100Q85476F
  • License APACHE

This is a CLI tool and GitHub Action that reads in the details from a GitHub Action's `action.yml` file and updates the `README.md` file with the `name`, `description`, `usage`, `inputs`, `outputs`, and examples of the action. Configuration can be provided via a `.ghadocs.json` file stored in the root directory of the Action's repository, via the command line when using the cli, or via the `with:` section of this Action. This tool uses markdown comments as delimiting tokens within the `README.md` file to determine where to place the generated content. [`README.example.md`](README.example.md) example with all fields filled in, and no other free-form content.

Package Exports

  • github-action-readme-generator
  • github-action-readme-generator/package.json

Readme

GitHub Action: 📓 GitHub Action's Readme Generator

This is a CLI tool and GitHub Action that reads in the details from a GitHub Action's action.yml file and updates the README.md file with the name, description, usage, inputs, outputs, and examples of the action. Configuration can be provided via a .ghadocs.json file stored in the root directory of the Action's repository, via the command line when using the cli, or via the with: section of this Action.

This tool uses markdown comments as delimiting tokens within the README.md file to determine where to place the generated content. README.example.md example with all fields filled in, and no other free-form content.

TODO

  • Add section for a title to the generator
  • Add section for a description to the generator
  • Add word wrapping to multi line text
  • Add section to generate the action.yml inputs to a table to the generator
  • Add section to generate the action.yml outputs to a table to the generator
  • Add a markdown contents menu section to the generator
  • Allow for using a separate template for generating the readme file
  • Add section to embed other markdown files, or directories by path, so that documentation can be organised in the file system.
    i.e: <!-- start [.github/ghdocs/examples/] --> and <!-- end [.github/ghdocs/examples/] -->
- uses: bitflight-devops/github-action-readme-generator@main
  with:
    # The absolute or relative path to the `action.yml` file to read in from.
    # Default: action.yml
    action: ''

    # The absolute or relative path to the markdown output file that contains the
    # formatting tokens within it.
    # Default: README.md
    readme: ''

    # The GitHub Action repository owner. i.e: `bitflight-devops`
    owner: ''

    # The GitHub Action repository name. i.e: `github-action-readme-generator`
    repo: ''

    # Save the provided values in a `.ghadocs.json` file. This will update any
    # existing `.ghdocs.json` file that is in place.
    # Default: false
    save: ''