-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
39 lines (39 loc) · 1.01 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
name: reddit-scheduled-submit
branding:
icon: "calendar"
color: "blue"
description: Submit message to Reddit at a scheduled time.
inputs:
client-id:
description: The Reddit app client ID.
required: true
client-secret:
description: The Reddit app client secret.
required: true
username:
description: The username of the Reddit user.
required: true
password:
description: The password of the Reddit user.
required: true
subreddit:
description: The subreddit to submit to.
required: true
title:
description: The title to submit.
required: true
message:
description: The message to submit.
required: true
runs:
using: docker
image: Dockerfile
env:
REDDIT_CLIENT_ID: ${{ inputs.client-id }}
REDDIT_CLIENT_SECRET: ${{ inputs.client-secret }}
REDDIT_USERNAME: ${{ inputs.username }}
REDDIT_PASSWORD: ${{ inputs.password }}
REDDIT_SUBREDDIT: ${{ inputs.subreddit }}
args:
- --title=${{ inputs.title }}
- --message=${{ inputs.message }}