github-actions-autodocs

Crates.iogithub-actions-autodocs
lib.rsgithub-actions-autodocs
version0.1.4
sourcesrc
created_at2023-04-05 16:41:55.290547
updated_at2023-04-07 00:23:56.381985
descriptionGenerate a basic readme for the given github action
homepage
repositoryhttps://github.com/rawnly/github-actions-autodocs
max_upload_size
id831227
size28,144
Federico (rawnly)

documentation

README

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

Commit count: 12

cargo fmt