Skip to content

Commit 3ce71e9

Browse files
Convert baseline markdown files to text and HTML (#1435)
* add workflow * fix paths * test write permissions * add remaining baseline files
1 parent e25a15b commit 3ce71e9

File tree

1 file changed

+98
-0
lines changed

1 file changed

+98
-0
lines changed
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
# Purpose: Converts the baseline Markdown files into HTML and text so that they can be ingested into Drupal.
2+
3+
name: Convert Baseline to Text and HTML
4+
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- ".github/workflows/convert_baselines.yaml"
10+
11+
permissions: read-all
12+
13+
jobs:
14+
convert:
15+
name: Convert
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@v4
20+
- name: Convert AAD to Text
21+
uses: docker://pandoc/core:3.5
22+
with:
23+
args: >-
24+
--standalone
25+
-f markdown
26+
-t plain
27+
PowerShell/ScubaGear/baselines/aad.md
28+
--output=baselines/aad.txt
29+
- name: Convert Defender to Text
30+
uses: docker://pandoc/core:3.5
31+
with:
32+
args: >-
33+
--standalone
34+
-f markdown
35+
-t plain
36+
PowerShell/ScubaGear/baselines/defender.md
37+
--output=baselines/defender.txt
38+
- name: Convert Exchange to Text
39+
uses: docker://pandoc/core:3.5
40+
with:
41+
args: >-
42+
--standalone
43+
-f markdown
44+
-t plain
45+
PowerShell/ScubaGear/baselines/exo.md
46+
--output=baselines/exo.txt
47+
- name: Convert Power BI to Text
48+
uses: docker://pandoc/core:3.5
49+
with:
50+
args: >-
51+
--standalone
52+
-f markdown
53+
-t plain
54+
PowerShell/ScubaGear/baselines/powerbi.md
55+
--output=baselines/powerbi.txt
56+
- name: Convert Power Platform to Text
57+
uses: docker://pandoc/core:3.5
58+
with:
59+
args: >-
60+
--standalone
61+
-f markdown
62+
-t plain
63+
PowerShell/ScubaGear/baselines/powerplatform.md
64+
--output=baselines/powerflatform.txt
65+
- name: Convert Sharepoint to Text
66+
uses: docker://pandoc/core:3.5
67+
with:
68+
args: >-
69+
--standalone
70+
-f markdown
71+
-t plain
72+
PowerShell/ScubaGear/baselines/sharepoint.md
73+
--output=baselines/sharepoint.txt
74+
- name: Convert Teams to Text
75+
uses: docker://pandoc/core:3.5
76+
with:
77+
args: >-
78+
--standalone
79+
-f markdown
80+
-t plain
81+
PowerShell/ScubaGear/baselines/teams.md
82+
--output=baselines/teams.txt
83+
- name: Install HTML converter
84+
run: npm i markdown-to-html-cli -g
85+
- name: Convert to HTML
86+
run: |
87+
markdown-to-html --source PowerShell/ScubaGear/baselines/aad.md --output baselines/aad.html
88+
markdown-to-html --source PowerShell/ScubaGear/baselines/defender.md --output baselines/defender.html
89+
markdown-to-html --source PowerShell/ScubaGear/baselines/exo.md --output baselines/exo.html
90+
markdown-to-html --source PowerShell/ScubaGear/baselines/powerbi.md --output baselines/powerbi.html
91+
markdown-to-html --source PowerShell/ScubaGear/baselines/powerplatform.md --output baselines/powerplatform.html
92+
markdown-to-html --source PowerShell/ScubaGear/baselines/sharepoint.md --output baselines/sharepoint.html
93+
markdown-to-html --source PowerShell/ScubaGear/baselines/teams.md --output baselines/teams.html
94+
- name: Upload
95+
uses: actions/upload-artifact@v4
96+
with:
97+
name: output
98+
path: baselines

0 commit comments

Comments
 (0)