-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
125 lines (123 loc) · 4.39 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
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: 'Blog Post Workflow'
author: 'supercomet329'
description: 'Allows you to show your latest blog posts on your github profile or project readme'
inputs:
gh_token:
description: 'GitHub access token with Repo scope'
required: false
default: ${{ github.token }}
readme_path:
description: 'Comma separated paths of the readme files you want to update'
default: './README.md'
required: false
max_post_count:
description: 'Maximum number of posts you want to show on your readme, all feeds combined'
default: '5'
required: false
feed_list:
description: "Comma separated list of RSS feed urls"
default: ""
required: true
disable_sort:
description: "Disables the sorting of list based on publish date"
default: "false"
required: false
filter_comments:
description: "Comma separated list of platforms you want to enable the comment filter"
default: "medium,stackoverflow/Comment by $author/,stackexchange/Comment by $author/"
required: false
tag_post_pre_newline:
description: "Inserts newline before the closing tag and after the opening tag when using the template option, for formatting"
required: false
template:
description: "Template to use while creating the list of posts. It can contain $title,$url, $newline and $date as variables"
default: "default"
required: false
date_format:
description: "Allows you to change the format of the date or time displayed when using the $date in the template option"
default: "UTC:ddd mmm dd yyyy h:MM TT"
required: false
comment_tag_name:
description: "Override the default comment tag name, if you want to show multiple instances of the action on the same repo"
required: false
user_agent:
description: "Allows you to customize the user agent used by the RSS feed crawler"
default: "rss-parser"
required: false
accept_header:
description: "Allows you to customize the accept header of the http request"
default: "application/rss+xml"
required: false
custom_tags:
description: "Allows you to use the custom tags from your feed items in your template"
default: ""
required: false
title_max_length:
description: "Allows you to trim the title in the posts list"
default: ""
required: false
description_max_length:
description: "Allows you to trim the description in the posts list"
default: ""
required: false
item_exec:
description: "Allows you to execute custom JavaScript code on each item to do advanced text manipulation"
default: ""
required: false
commit_message:
description: "Commit message used while committing to the repo"
default: "Updated with the latest blog posts"
required: false
committer_username:
description: "Username used while committing to the repo"
default: "blog-post-bot"
required: false
committer_email:
description: "Email id used while committing to the repo"
default: "[email protected]"
required: false
output_only:
description: "Prevent updating the readme, instead sets the output to the output variable named `results`"
default: "false"
required: false
enable_keepalive:
description: "Enables the feature that keeps the repo active by automatically committing to it even though there is no change"
default: "true"
required: false
retry_count:
description: "Maximum number of times to retry the fetch operation if it fails"
default: "0"
required: false
retry_wait_time:
description: "Time to wait before each retry operation in seconds"
default: "1"
required: false
feed_names:
description: "Comma separated name of the feeds to show on template"
default: ""
required: false
disable_html_encoding:
description: "Disables html encoding of the feed contents"
default: "false"
required: false
categories_template:
description: "Allows you to specify a template for the individual items in the category list"
default: "default"
required: false
disable_item_validation:
description: "Disables the validation checks for Title, publish date and URL"
default: "false"
required: false
filter_dates:
description: "Enables date filters"
default: ""
required: false
outputs:
results:
description: "JSON stringified array of posts"
runs:
using: node16
main: dist/blog-post-workflow.js
branding:
icon: 'activity'
color: 'blue'