-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
66 lines (60 loc) · 2.09 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: 'Living Documentation Generator'
description: 'Generates living documentation from current state of user defined GitHub repositories.'
inputs:
GITHUB_TOKEN:
description: 'GitHub token for authentication.'
required: true
repositories:
description: 'JSON string defining the repositories to be included in the documentation generation.'
required: true
project-state-mining:
description: 'Enable or disable mining of project state data.'
required: false
default: 'false'
verbose-logging:
description: 'Enable or disable verbose logging.'
required: false
default: 'false'
output-path:
description: 'Path to the generated living documentation files.'
required: false
default: './output'
structured-output:
description: 'Enable or disable structured output.'
required: false
default: 'false'
group-output-by-topics:
description: 'Enable or disable grouping tickets by topics in the summary index.md file.'
required: false
default: 'false'
outputs:
output-path:
description: 'Path to the generated living documentation files'
value: ${{ steps.liv-doc-generator.outputs.output-path }}
branding:
icon: 'book'
color: 'yellow'
runs:
using: 'composite'
steps:
- name: Install Python dependencies
run: |
pip install -r ${{ github.action_path }}/requirements.txt
shell: bash
- name: Set PROJECT_ROOT and update PYTHONPATH
run: |
ACTION_ROOT="${{ github.action_path }}"
export PYTHONPATH="${PYTHONPATH}:${ACTION_ROOT}/living-doc-generator"
shell: bash
- name: Call Living Documentation Generator
id: liv-doc-generator
env:
INPUT_GITHUB_TOKEN: ${{ env.GITHUB_TOKEN }}
INPUT_REPOSITORIES: ${{ inputs.repositories }}
INPUT_PROJECT_STATE_MINING: ${{ inputs.project-state-mining }}
INPUT_VERBOSE_LOGGING: ${{ inputs.verbose-logging }}
INPUT_OUTPUT_PATH: ${{ inputs.output-path }}
INPUT_STRUCTURED_OUTPUT: ${{ inputs.structured-output }}
run: |
python ${{ github.action_path }}/main.py
shell: bash