Giter Club home page Giter Club logo

github-actions-documenter's Introduction

typescript-action status

GitHub Actions Documenter

Auto generate github actions document from yml file.

Support actions

How to use

  1. Make your awesome Custom Actions or Reusable Workflows on your repository.
  2. Use this reusable workflow in your repository.
    • Please find a example of usage here.

For adding further documentation, comment annotation features are supported on the workflow file.

# Annotation value description
1 @example Title with markdown value (e.g. ### Title) @example can make examples with a code block and insert those comments under the each workflow title.
1 @note Title with markdown value (e.g. ### Title) @note can make notes with a raw markdown and insert those comments at the bottom of the generated document.

Change log

  • 2022/08/10: First creation v0.0.1
  • 2022/08/10: Readme update v0.0.2

๐Ÿ”ฐ Custom Actions ๐Ÿ”ฐ

1: GitHub Actions documenter

using: node16

Auto documentation for Github Actions workflows

Basic example

 steps:
   - id: documenter
     name: "Generate document"
     uses: gizumon/github-actions-documenter@main

Example with parameters

 steps:
   - id: documenter
     name: "Generate document"
     uses: gizumon/github-actions-documenter@main
     with:
       target-filepaths: |
         action.yml
         .github/workflows/github-actions-documenter.yml
       should-skip-generate-agenda: true
       should-skip-generate-custom-actions: false
       should-skip-generate-reusable-workflows: false

Inputs

# Required Name Default Description
1 target-filepaths Target filepaths for generating Custom Actions and Reusable Workflows.
If not specified, all Custom Actions and Reusable Workflows files in the repository will be documented. (default: "")
2 should-skip-generate-agenda false If true, skip generating Agenda document. (default: false)
3 should-skip-generate-custom-actions false If true, skip generating Custom Actions document. (default: false)
4 should-skip-generate-reusable-workflows false If true, skip generating Reusable Workflows document. (default: false)

Outputs

# Name Description
1 output GitHub Actions markdown documents including Custom Actions and Reusable Workflows
2 agenda-ca Agenda for Custom Actions markdown documents
3 output-ca Custom Actions markdown documents
4 agenda-rw Agenda for Reusable Workflows markdown documents
5 output-rw Reusable Workflows markdown documents

๐Ÿ”ฐ Reusable Workflows ๐Ÿ”ฐ

1: Document Generate Reusable Workflow

Example1: Basic example

 name: "Basic example"
 on:
   pull_request:
     paths:
       - '.github/workflows/*.yml'
 jobs:
   test:
     uses: gizumon/github-actions-documenter/.github/workflows/github-actions-documenter.yml@main
     with:
       filepath: README.md

Example2: Advanced example

 name: "Advanced example"
 on:
   pull_request:
     paths:
       - '.github/workflows/*.yml'
 jobs:
   test:
     uses: gizumon/github-actions-documenter/.github/workflows/github-actions-documenter.yml@main
     with:
       filepath: .github/docs/github-actions-doc.md
       overwrite: true
       make-pull-request: true

Inputs

# Required Type Name Default Description
1 โœ… string filepath README.md Filepath to write the generated reusable workflow document. (default: README.md)
2 boolean overwrite false If true, overwrite the filepath file. (default: false)
3 boolean make-pull-request false If true, make a pull request to ref branch.
If false, directly push to ref branch. (default: false)

Outputs

# Name Description
1 output GitHub Actions markdown document (Reusable Workflow and Custom Actions)

Support events

  • push
  • pull_request

github-actions-documenter's People

Contributors

gizumon avatar davidmakin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.