-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
73 lines (69 loc) · 2.09 KB
/
Copy pathaction.yml
File metadata and controls
73 lines (69 loc) · 2.09 KB
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
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. Optional if media-paths is provided.'
required: false
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
media-paths:
description: 'Comma-separated list of media file paths to attach (max 4). Supported: images, video, audio.'
required: false
media-descriptions:
description: 'Comma-separated list of alt text descriptions for media files. If one value is provided, it applies to all.'
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 }}
- --media-paths
- ${{ inputs.media-paths }}
- --media-descriptions
- ${{ inputs.media-descriptions }}
branding:
icon: edit
color: blue