-
Notifications
You must be signed in to change notification settings - Fork 241
98 lines (94 loc) · 3.29 KB
/
convert_baselines.yaml
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Purpose: Converts the baseline Markdown files into HTML and text so that they can be ingested into Drupal.
name: Convert Baseline to Text and HTML
on:
workflow_dispatch:
push:
paths:
- ".github/workflows/convert_baselines.yaml"
permissions: read-all
jobs:
convert:
name: Convert
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Convert AAD to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/aad.md
--output=baselines/aad.txt
- name: Convert Defender to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/defender.md
--output=baselines/defender.txt
- name: Convert Exchange to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/exo.md
--output=baselines/exo.txt
- name: Convert Power BI to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/powerbi.md
--output=baselines/powerbi.txt
- name: Convert Power Platform to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/powerplatform.md
--output=baselines/powerflatform.txt
- name: Convert Sharepoint to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/sharepoint.md
--output=baselines/sharepoint.txt
- name: Convert Teams to Text
uses: docker://pandoc/core:3.5
with:
args: >-
--standalone
-f markdown
-t plain
PowerShell/ScubaGear/baselines/teams.md
--output=baselines/teams.txt
- name: Install HTML converter
run: npm i markdown-to-html-cli -g
- name: Convert to HTML
run: |
markdown-to-html --source PowerShell/ScubaGear/baselines/aad.md --output baselines/aad.html
markdown-to-html --source PowerShell/ScubaGear/baselines/defender.md --output baselines/defender.html
markdown-to-html --source PowerShell/ScubaGear/baselines/exo.md --output baselines/exo.html
markdown-to-html --source PowerShell/ScubaGear/baselines/powerbi.md --output baselines/powerbi.html
markdown-to-html --source PowerShell/ScubaGear/baselines/powerplatform.md --output baselines/powerplatform.html
markdown-to-html --source PowerShell/ScubaGear/baselines/sharepoint.md --output baselines/sharepoint.html
markdown-to-html --source PowerShell/ScubaGear/baselines/teams.md --output baselines/teams.html
- name: Upload
uses: actions/upload-artifact@v4
with:
name: output
path: baselines