-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
46 lines (35 loc) · 2.57 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Create metadata post action"
author: "@katydecorah"
description: "A GitHub action that creates a metadata post from data files."
runs:
using: node20
main: "dist/index.js"
inputs:
github-username:
description: The GitHub username that owns the repository with the data files.
required: true
github-repository:
description: The Github repository that has the data files.
required: true
posts-directory:
description: The path to where you want to save your metadata post files to in this repository.
default: "notes/_posts/"
post-template:
description: "If you'd like to customize the [markdown template](src/template.md), define a path to your own. Example: `post-template: .github/actions/post-template.md`. The markdown template shows all the available variables and an idea for how you may want to format this file. For now, the templating is simplistic and does not offer functionality outside of this action replacing variable names."
source-books:
description: "Define the label and file path for the books data generated by [read-action](https://github.com/katydecorah/read-action). Separate the label and file path with a pipe (`|`). If you do not have books, set this value to `false`. Note: this value will **not** change the variable name in the markdown template, which is `bookYaml` and `bookMarkdown`."
default: books|_data/read.json
source-bookmarks:
description: "Define the label and file path for the bookmarks data generated by [bookmark-action](https://github.com/katydecorah/bookmark-action). Separate the label and file path with a pipe (`|`). If you do not have bookmarks, set this value to `false`. Note: this value will **not** change the variable name in the markdown template, which is `bookmarkYaml` and `bookmarkMarkdown`."
default: bookmarks|_data/bookmarks.json
source-playlist:
description: "Define the file path for the playlist data generated by [spotify-to-yaml-action](https://github.com/katydecorah/spotify-to-yaml-action). If you do not have playlists, set this value to `false`."
default: _data/playlists.yml
book-tags:
description: "Allow specific tags to be passed through. Separate each tag with a comma."
start-date:
description: "The start date for the post. The format is `YYYY-MM-DD`. This can be set as an action input or workflow input."
end-date:
description: "The end date for the post. The format is `YYYY-MM-DD`. This can be set as an action input or workflow input."
post-title:
description: "The title of the post. This can be set as an action input or workflow input."