-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
executable file
·137 lines (134 loc) · 5.17 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: agoras-actions
author: Luis Alejandro Martínez Faneyth
description: Agoras helps publish, schedule, like, share and delete posts on the most popular social networks.
inputs:
network:
description: 'Social network to use for publishing (default: ""). Must be one of: twitter, facebook, instagram or linkedin.'
required: true
action:
description: 'Action to execute (default: ""). Must be one of: like, share, last-from-feed, random-from-feed, schedule, post, delete.'
required: true
twitter-consumer-key:
description: Twitter consumer key from twitter developer app.
required: false
twitter-consumer-secret:
description: Twitter consumer secret from twitter developer app.
required: false
twitter-oauth-token:
description: Twitter OAuth token from twitter developer app.
required: false
twitter-oauth-secret:
description: Twitter OAuth secret from twitter developer app.
required: false
tweet-id:
description: Twitter post ID to like, share or delete.
required: false
facebook-access-token:
description: Facebook access token from facebook app.
required: false
facebook-object-id:
description: Facebook ID of object where the post is going to be published.
required: false
facebook-post-id:
description: Facebook ID of post to be liked, shared or deleted.
required: false
facebook-profile-id:
description: Facebook ID of profile where a post will be shared.
required: false
instagram-access-token:
description: Facebook access token from facebook app.
required: false
instagram-object-id:
description: Instagram ID of profile where the post is going to be published.
required: false
instagram-post-id:
description: Instagram ID of post to be liked, shared or deleted.
required: false
linkedin-access-token:
description: Your LinkedIn access token.
required: false
linkedin-post-id:
description: LinkedIn post ID to like, share or delete.
required: false
status-text:
description: Text to be published.
required: false
status-link:
description: Link to be published.
required: false
status-image-url-1:
description: First image URL to be published.
required: false
status-image-url-2:
description: Second image URL to be published.
required: false
status-image-url-3:
description: Third image URL to be published.
required: false
status-image-url-4:
description: Fourth image URL to be published.
required: false
feed-url:
description: URL of public Atom feed to be parsed.
required: false
max-count:
description: Max number of new posts to be published at once.
required: false
post-lookback:
description: Only allow posts published
required: false
max-post-age:
description: Dont allow publishing of posts older than this number of days.
required: false
google-sheets-client-email:
description: A google console project client email corresponding to the private key.
required: false
google-sheets-private-key:
description: A google console project private key.
required: false
google-sheets-id:
description: The google sheets ID to read schedule entries.
required: false
google-sheets-name:
description: The name of the sheet where the schedule is.
required: false
outputs:
result:
description: Separated comma list of published post IDs.
runs:
using: docker
image: docker://ghcr.io/luisalejandro/agoras-actions:1.1.3
args:
- network="${{ inputs.network }}"
- action="${{ inputs.action }}"
- twitter-consumer-key="${{ inputs.twitter-consumer-key }}"
- twitter-consumer-secret="${{ inputs.twitter-consumer-secret }}"
- twitter-oauth-token="${{ inputs.twitter-oauth-token }}"
- twitter-oauth-secret="${{ inputs.twitter-oauth-secret }}"
- tweet-id="${{ inputs.tweet-id }}"
- facebook-access-token="${{ inputs.facebook-access-token }}"
- facebook-object-id="${{ inputs.facebook-object-id }}"
- facebook-post-id="${{ inputs.facebook-post-id }}"
- facebook-profile-id="${{ inputs.facebook-profile-id }}"
- instagram-access-token="${{ inputs.instagram-access-token }}"
- instagram-object-id="${{ inputs.instagram-object-id }}"
- instagram-post-id="${{ inputs.instagram-post-id }}"
- linkedin-access-token="${{ inputs.linkedin-access-token }}"
- linkedin-post-id="${{ inputs.linkedin-post-id }}"
- status-text="${{ inputs.status-text }}"
- status-link="${{ inputs.status-link }}"
- status-image-url-1="${{ inputs.status-image-url-1 }}"
- status-image-url-2="${{ inputs.status-image-url-2 }}"
- status-image-url-3="${{ inputs.status-image-url-3 }}"
- status-image-url-4="${{ inputs.status-image-url-4 }}"
- feed-url="${{ inputs.feed-url }}"
- max-count="${{ inputs.max-count }}"
- post-lookback="${{ inputs.post-lookback }}"
- max-post-age="${{ inputs.max-post-age }}"
- google-sheets-client-email="${{ inputs.google-sheets-client-email }}"
- google-sheets-private-key="${{ inputs.google-sheets-private-key }}"
- google-sheets-id="${{ inputs.google-sheets-id }}"
- google-sheets-name="${{ inputs.google-sheets-name }}"
branding:
icon: share-2
color: white