-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
63 lines (59 loc) · 1.63 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
name: 'mastodon-send'
description: 'Send toots (messages) to a Mastodon instance from GitHub Actions'
author: 'cbrgm'
inputs:
url:
description: 'Mastodon instance URL'
required: true
access-token:
description: 'Mastodon access token for authentication'
required: true
message:
description: 'The content of the toot'
required: true
visibility:
description: 'Visibility of the toot (public, unlisted, private, direct)'
required: false
default: 'public'
sensitive:
description: 'Mark the toot and attached media as sensitive'
required: false
default: "false"
spoiler-text:
description: 'Text to be shown as a warning before the actual content'
required: false
language:
description: 'ISO 639 language code for the toot'
required: false
scheduled-at:
description: 'ISO 8601 Datetime to schedule the toot. Must be at least 5 minutes in the future'
required: false
outputs:
id:
description: 'The id of the toot posted'
url:
description: 'The url to the toot if present'
scheduled_at:
description: 'The datetime at which to post the status if present'
runs:
using: 'docker'
image: 'docker://ghcr.io/cbrgm/mastodon-github-action:v2'
args:
- --url
- ${{ inputs.url }}
- --access-token
- ${{ inputs.access-token }}
- --message
- ${{ inputs.message }}
- --visibility
- ${{ inputs.visibility }}
- --sensitive=${{ inputs.sensitive }}
- --spoiler-text
- ${{ inputs.spoiler-text }}
- --language
- ${{ inputs.language }}
- --scheduled-at
- ${{ inputs.scheduled-at }}
branding:
icon: edit
color: blue