forked from githubocto/repo-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
46 lines (46 loc) · 1.96 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Repo Visualizer"
description: "A GitHub Action that creates an SVG diagram of your repo"
author: "GitHub OCTO"
inputs:
output_file:
description: "A path (relative to the root of your repo) to where you would like the diagram to live. For example: images/diagram.svg. Default: diagram.svg"
required: false
excluded_paths:
description: "A list of paths to exclude from the diagram, separated by commas. For example: dist,node_modules"
required: false
excluded_globs:
description: "A list of micromatch globs to exclude from the diagram, separated by semicolons. For example: **/*.png;docs/**/*.{png,ico}"
required: false
root_path:
description: 'The directory (and its children) that you want to visualize in the diagram. Default: "" (repository root directory)'
required: false
max_depth:
description: "The maximum number of nested folders to show files within. Default: 9"
required: false
commit_message:
description: "The commit message to use when updating the diagram. Default: Repo visualizer: updated diagram"
required: false
branch:
description: "The branch name to push the diagram to (branch will be created if it does not yet exist). For example: diagram"
required: false
should_push:
description: "Whether to push the new commit back to the repository. Must be true or false. Default: true"
required: false
default: true
artifact_name:
description: "If given, the name of an artifact to be created containing the diagram. Default: don't create an artifact."
required: false
default: ''
file_colors:
description: "You can customize the colors for specific file extensions. Key/value pairs will extend the [default colors](https://github.com/githubocto/repo-visualizer/pull/src/language-colors.json)."
required: false
default: "{}"
outputs:
svg:
description: "The diagram contents as text"
runs:
using: "node12"
main: "index.js"
branding:
color: "purple"
icon: "target"