-
Notifications
You must be signed in to change notification settings - Fork 3
47 lines (46 loc) · 1.44 KB
/
help-messages.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
name: generate-docs
run-name: help-messages
on:
push:
branches:
- 'main'
env:
plugins: 'findingfromtemplate burp openvas nessus nmap zap createproject pushproject unpackarchive packarchive sslyze file note project template translate ghostwriter finding deletefindings deleteprojects exportfindings defectdojo'
jobs:
help-messages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- run: pip install .[all]
- run: |
reptor --help > docs/help-messages/reptor
for p in $plugins; do
reptor "$p" --help > docs/help-messages/"$p"
done
- uses: EndBug/[email protected]
with:
add: 'docs/help-messages/'
pull: "--autostash"
author_name: Help Message Bot
author_email: [email protected]
message: 'Update help messages'
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: cat docs/getting-started.md | sed "/## Usage/q" > README.md
- run: |
printf "\n\`\`\`" >> README.md
cat docs/help-messages/reptor >> README.md
printf "\n\`\`\`" >> README.md
- uses: EndBug/[email protected]
with:
add: 'README.md'
author_name: README Bot
author_email: [email protected]
message: 'Update README.md'