-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathaction.yml
48 lines (48 loc) · 1.76 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
name: 'AoC-badges'
description: 'Updates the badges of your Readme to show your current Advent of Code stats '
runs:
using: docker
image: Dockerfile
inputs:
session:
description: >
Your session code for login. Retrive it from your browser cookies.
Make sure you use a secret to not leak this to public.
required: true
userid:
description: >
Your unique userid on adventofcode.com, obtain it from **YOUR** private leaderboard url (its the number at the end of the url).
required: true
year:
description: >
The year for which the stats should be retrived.
If not speified, the current year (from system time) is used.
required: false
leaderboard:
description: >
The url of your leaderboard json file.
You can get it by just appending .json to the url of your leaderboard.
required: false
file:
description: >
The file where the badges should be updated. Default is README.md
required: false
default: 'README.md'
dayRegex:
description: >
A regular expression to find the day badge in your file. Must be changed if you change the badge.
required: false
default: '(?<=https:\/\/img\.shields\.io\/badge\/day%20📅-)[0-9]+(?=-blue)'
starsRegex:
description: >
A regular expression to find the stars badge in your file. Must be changed if you change the badge.
required: false
default: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)'
daysCompletedRegex:
description: >
A regular expression to find the completed days badge in your file. Must be changed if you change the badge.
required: false
default: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red)'
branding:
icon: 'star'
color: 'yellow'