-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
81 lines (66 loc) · 1.65 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
name: 'Social Post'
author: 'Jo Colina'
description: 'A simple action to create posts on Social Media'
inputs:
MESSAGE_TEMPLATE:
description: 'What should be sent? (only text enabled)'
required: true
default: 'I published a new release to {{ platform_name }}: v${{ github.ref }}!'
# #######
# TWITTER
# #######
TWITTER_ENABLED:
description: 'Should post to twitter?'
required: true
default: false
TWITTER_CONSUMER_KEY:
description: 'Twitter Consumer Key from your App'
required: false
default: ''
TWITTER_CONSUMER_SECRET:
description: 'Twitter Consumer Secret from your App'
required: false
default: ''
TWITTER_API_KEY:
description: 'Twitter API Key from your App'
required: false
default: ''
TWITTER_API_SECRET:
description: 'Twitter API Secret from your App'
required: false
default: ''
# #######
# DISCORD
# #######
DISCORD_ENABLED:
description: 'Should post to Discord?'
required: true
default: false
DISCORD_WEBHOOK:
description: 'Discord webhook to post message'
required: false
default: ''
# #######
# SLACK
# #######
SLACK_ENABLED:
description: 'Should post to Slack?'
required: true
default: false
SLACK_OAUTH_TOKEN:
description: 'Slack bot token'
required: false
default: ''
SLACK_BOT_NAME:
description: 'The username the bot will have when sending the message'
required: false
SLACK_CHANNEL:
description: 'The channel the bot should post to (the # is required)'
required: false,
default: '#general'
runs:
using: 'node12'
main: 'index.js'
branding:
icon: activity
color: blue