-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (37 loc) · 1.31 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
name: "post-to-mastodon"
description: "Github Action that sends a toot to Mastodon when you post a new blog post."
author: "Sumit Singh"
branding:
icon: "play"
color: "blue"
inputs:
message:
description: "The message which we send to Mastodon."
default: "Hello, folks! I just posted a new blog post. Check it out!"
base_blog_url:
description: >
Base url of the blog post. This is used to construct the link to the blog post. For example,
if the blog post is at https://sumit4613.github.io/posts/django_middlewares/, then
the base-blog-url is https://sumit4613.github.io/posts/
required: true
base_directory:
description: >
The base directory of the blog posts. This is used to construct the link to the blog post. For example,
in my blog all posts are stored in content/posts/ directory. So, the base-directory is content/posts/.
required: true
default: "content/posts/"
access_token:
description: "Application access token, generated from mastodon dashboard."
required: true
host:
description: "Your mastodon instance host."
default: "fosstodon.org"
port:
description: "Your mastodon instance port."
default: "443"
api:
description: "Your mastodon instance api."
default: "api/v1"
runs:
using: "docker"
image: "Dockerfile"