-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (36 loc) · 1.45 KB
/
wc-document-generation.yml
File metadata and controls
39 lines (36 loc) · 1.45 KB
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
---
name: Document Generation
on:
workflow_call:
permissions: {}
jobs:
generate-documents:
name: Generate Documents
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: step-security/harden-runner@5ef0c079ce82195b2a36a210272d6b661572d83e # v2.14.2
with:
egress-policy: audit
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Install dependencies
run: |
set -Eeuo pipefail
sudo apt-get update && sudo apt-get install --no-install-recommends -y plantuml
python -m pip install gherkin-official==35.1.0 sbdl==1.16.4
- name: Generate SRS document
run: |
set -Eeuo pipefail
python docs/support/gherkin-to-sbdl.py test/cpp/features/*.feature
sbdl -m template-fill --template docs/templates/software-requirements-specification.md.j2 output.sbdl > software-requirements-specification.md
- uses: docker://pandoc/extra:3.7.0@sha256:a703d335fa237f8fc3303329d87e2555dca5187930da38bfa9010fa4e690933a
with:
args: --template eisvogel --listings --number-sections --output software-requirements-specification.pdf software-requirements-specification.md
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: documents
path: "*.pdf"
retention-days: 2