#github-action #generate #basic

bin+lib github-actions-autodocs

Generate a basic readme for the given github action

5 releases

0.1.4 Apr 7, 2023
0.1.3 Apr 6, 2023
0.1.2 Apr 5, 2023
0.1.1 Apr 5, 2023
0.1.0 Apr 5, 2023

#1470 in Development tools

Download history 50/week @ 2024-07-25 10/week @ 2024-08-01 5/week @ 2024-09-19 2/week @ 2024-09-26

74 downloads per month

MIT license

9KB
181 lines

Github Actions Autodocs (GCA)

Generate a basic readme for the given github action

Installation

Install via cargo

  cargo install github-actions-autodocs

Usage

Usage: github-actions-autodocs [OPTIONS]

Options:
  -f, --file <FILE>      Source path [default: action.yml]
      --dry              Dry run
  -o, --output <OUTPUT>  Output filepath
  -h, --help             Print help
  -V, --version          Print version

Github Action

name: Generate Readme

on:
  push:

jobs:
  generate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: rawnly/github-actions-autodocs@main
        with:
          action-file: action.yml
      - shell: bash
        run: |
          git add -A .
          git commit -m 'docs: README'
          git push -u origin ${{ github.ref }}

TIP: Alias github-actions-autodocs to gca 😉

LICENSE

The MIT License

Dependencies

~5–14MB
~173K SLoC