-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
33 lines (33 loc) · 947 Bytes
/
action.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
name: Build Markdown notes
description: Covert Markdown notes to HTML, using Pandoc with mermaid-filter
inputs:
from:
description: Repository to find the notes in
required: true
to:
description: Folder to build the site into
required: true
runs:
using: composite
steps:
# Checkout the required scripts.
- name: Checkout scripts
uses: actions/checkout@v4
with:
repository: thass0/motes
# Checkout the notes into their own nested directory.
- name: Checkout notes
uses: actions/checkout@v4
with:
repository: ${{ inputs.from }}
path: from-notes
# Setup mermaid-filter using node.
- name: Setup node
uses: actions/setup-node@v3
- run: npm install --global mermaid-filter
shell: bash
- name: Setup pandoc
uses: nikeee/setup-pandoc@v1
# Build the site.
- run: bash motes-build from-notes ${{ inputs.to }}
shell: bash