generated from jacobtomlinson/python-container-action
-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
166 lines (127 loc) · 6.79 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
name: "Discord Activity Badge"
description: "Bridge your Discord State and Activities to a Representable Badge on your repository to show your current status."
author: "Janrey 'CodexLink' Licas"
# ! Are you looking for the default values of these parameters? Please check src/elements/constants.py or the README.md for more information.
inputs:
# # Required Parameters
BADGE_IDENTIFIER_NAME:
description: "The name of the badge (in markdown form) that will be utilized to replace the state of the user. If the identifier does not exists, then it will proceed to create a new one and append it on the top. You must arranged it right after."
required: false
COMMIT_MESSAGE:
description: "The commit message that the user wants to invoke whenever there's changes."
required: false
DISCORD_BOT_TOKEN:
description: "The token of your bot from the Discord's Developer Page. It was used to allow usage of Discord API."
required: true
DISCORD_USER_ID:
description: "A long integer ID used to indicate who you are in a certain mutual guild."
required: true
PROFILE_REPOSITORY:
description: "The repository from where the commits will be pushed. Fill this when you are indirectly deploying the script under different repository."
default: ${{ github.repository }}
required: false
URL_TO_REDIRECT_ON_CLICK:
description: "The URL to point when the badge has been clicked."
default: ${{ github.repository }}
required: false
WORKFLOW_TOKEN:
description: "The token of the Github Workflow Instance used to authenticate commits deployed by the script. Fill this when you are indirectly deploying the script under different repository."
required: false
default: ${{ github.token }}
# # Optional Parameters — Colors and Intentions.
CUSTOM_ACTIVITY_STRING:
description: "Overrides `Discord Activity` (Subject String) and User State with the state of `CustomActivity` with custom strings."
required: False
GAME_ACTIVITY_STRING:
description: "Overrides `Discord Activity` (Subject String) and User State with the state of `Game` with custom strings."
required: False
RICH_PRESENCE_STRING:
description: "Overrides `Discord Activity` (Subject String) and User State with the state of `Activity` with custom strings."
required: False
STREAM_ACTIVITY_STRING:
description: "Overrides `Discord Activity` (Subject String) and User State with the state of `Stream` with custom strings."
required: False
SPOTIFY_ACTIVITY_STRING:
description: "Overrides `Discord Activity` (Subject String) and User State with the state of `Unspecified` with custom strings."
required: False
ONLINE_STATUS_STRING:
description: "Overrides the status output in Online state."
required: False
IDLE_STATUS_STRING:
description: "Overrides the status output in Idle state."
required: False
DND_STATUS_STRING:
description: "Overrides the status output in Do-Not-Disturb (DND) state."
required: False
OFFLINE_STATUS_STRING:
description: "Overrides the status output in Offline state."
required: False
CUSTOM_ACTIVITY_COLOR:
description: "Renders status badge color whenever there's a Custom activity. Please check README.md for more information about this parameter."
required: false
GAME_ACTIVITY_COLOR:
description: "Renders status badge color whenever there's a Game activity. Please check README.md for more information about this parameter."
required: false
RICH_PRESENCE_COLOR:
description: "Renders status badge color whenever there's a Rich Presence. Please check README.md for more information about this parameter."
required: false
STREAM_ACTIVITY_COLOR:
description: "Renders status badge color whenever there's a Stream activity. Please check README.md for more information about this parameter."
required: false
SPOTIFY_ACTIVITY_COLOR:
description: "Renders status badge color whenever there's a Unspecified activity. Please check README.md for more information about this parameter."
required: false
ONLINE_STATUS_COLOR:
description: "Overrides the status color when the user is in Online state."
required: False
IDLE_STATUS_COLOR:
description: "Overrides the status color when the user is in Idle state."
required: False
DND_STATUS_COLOR:
description: "Overrides the status color when the user is in Do-Not-Disturb (DND) state."
required: False
OFFLINE_STATUS_COLOR:
description: "Overrides the status color when the user is in Offline state."
required: False
STATIC_SUBJECT_STRING:
description: "Statically declare a certain string to display on the subject. If declared, []_ACTIVITY_STRING and []_STATUS_STRING will be ignored."
required: False
# # Optional Parameters — Context
PREFERRED_PRESENCE_CONTEXT:
description: "Overrides additional information to append in the badge. So far, only `DETAILS`, and `STATE` are allowed to be appended since it shows the other context of the application."
required: false
TIME_DISPLAY_OUTPUT:
description: "Appends time (based on preference) after the application name or detail when `APPEND_PRESENCE_CONTEXT` is `True`."
required: false
TIME_DISPLAY_ELAPSED_OVERRIDE_STRING:
description: "Overrides the string appended whenever the time is displayed for elapsed. This is effective only when `SHOW_TIME_DURATION` is `True`."
required: false
TIME_DISPLAY_REMAINING_OVERRIDE_STRING:
description: "Overrides the string appended whenever the time is displayed for remaining. This is effective only when `SHOW_TIME_DURATION` is `True`."
required: false
TIME_DISPLAY_SHORTHAND:
description: "Displays the time with hours and minutes shorthanded to h and m."
required: false
# # Optional Parameters — Preferences
PREFERRED_ACTIVITY_TO_DISPLAY:
description: "Renders a particular activity as a prioritized activity. If the preferred activity does not exist, it will render any activity by default."
required: false
SHIFT_STATUS_ACTIVITY_COLORS:
description: "Interchange state and activity colors. This is useful only if you want to retain your state color position even though `APPEND_STATE_ON_SUBJECT` is true."
required: False
SPOTIFY_INCLUDE_ALBUM_PLAYLIST_NAME:
description: "Interchange state and activity colors. This is useful only if you want to retain your state color position even though `APPEND_STATE_ON_SUBJECT` is true."
required: False
STATUS_CONTEXT_SEPERATOR:
description: "The character/s that seperates the context of every status elements."
required: false
# # Development Parameters
IS_DRY_RUN:
description: "Runs the usual process except it doesn't commit changes."
required: false
branding:
icon: "activity"
color: "orange"
runs:
using: "docker"
image: "docker://codexlink/discord-activity-badge:latest"