Skip to content

help-messages

help-messages #114

Workflow file for this run

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'