forked from selfagency/mastofeedbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
42 lines (42 loc) · 1.1 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
name: 'Feed to Mastodon'
author: 'selfagency'
description: 'Push ATOM/RSS feed updates to Mastodon via GitHub Actions'
branding:
icon: 'rss'
color: 'orange'
inputs:
rss-feed:
description: 'RSS feed URL'
required: true
status-visibility:
description: 'Visibility of the posted status (public | unlisted | private | direct)'
required: false
default: 'public'
template:
description: 'Template of status posted to Mastodon (Handlebars)'
required: true
default: '{{item.title}} {{item.link}}'
dry-run:
description: 'Only fetch RSS feed and update cache but skip posting to Mastodon.'
required: false
default: 'false'
sensitive:
description: 'Mark Mastodon status as sensitive content.'
required: false
default: 'false'
cache-file:
description: 'Cache file'
required: true
cache-limit:
description: 'Cache limit'
required: false
default: '100'
api-endpoint:
description: 'Mastodon API endpoint'
required: true
api-token:
description: 'Mastodon access token'
required: true
runs:
using: 'node20'
main: 'dist/index.js'