-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathaction.yaml
More file actions
49 lines (48 loc) 路 1.54 KB
/
Copy pathaction.yaml
File metadata and controls
49 lines (48 loc) 路 1.54 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
40
41
42
43
44
45
46
47
48
49
name: 'Mk Notes'
description: 'Markdown to Notion synchronization tool 馃攧'
author: 'Myastr0'
inputs:
input:
description: 'The path to the markdown file or directory to synchronize'
required: true
destination:
description: 'The Notion page URL where you want to synchronize your markdown files (required for sync action)'
required: true
notion-api-key:
description: 'Your Notion secret token (required for sync action)'
required: true
format:
description: 'The format of the preview ("plainText" or "json") (for preview action)'
required: true
default: 'plainText'
output:
description: 'The path to the output file (for preview action)'
required: false
clean:
description: 'Clean sync mode - WARNING: removes ALL existing content from the destination page before syncing, including any custom content not created by mk-notes (for sync action)'
required: false
default: 'false'
lock:
description: 'Lock the Notion page after syncing (for sync action)'
required: false
default: 'false'
runs:
using: 'composite'
steps:
- name: Preview Action
uses: ./preview
with:
input: ${{ inputs.input }}
format: ${{ inputs.format }}
output: ${{ inputs.output }}
- name: Sync Action
uses: ./sync
with:
input: ${{ inputs.input }}
destination: ${{ inputs.destination }}
notion-api-key: ${{ inputs.notion-api-key }}
clean: ${{ inputs.clean }}
lock: ${{ inputs.lock }}
branding:
icon: 'refresh-cw'
color: 'purple'