-
Notifications
You must be signed in to change notification settings - Fork 0
108 lines (94 loc) · 4.03 KB
/
badges.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
name: Update AoC Badges
on:
schedule:
- cron: "7 9 * 12 *"
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: "2024"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2024
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2024_⭐-)[0-9]+(?=-blue)'
# - name: "2023"
# uses: joblo2213/aoc-badges-action@v3
# with:
# userid: ${{ secrets.AOC_USERID }}
# session: ${{ secrets.AOC_SESSION }}
# year: 2023
# #leaderboard: 'https://adventofcode.com/2020/leaderboard/private/view/00000.json'
# #file: 'README.md'
# starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2023_⭐-)[0-9]+(?=-pink)'
# #daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red)'
# - name: "2022"
# uses: joblo2213/aoc-badges-action@v3
# with:
# userid: ${{ secrets.AOC_USERID }}
# session: ${{ secrets.AOC_SESSION }}
# year: 2022
# #leaderboard: 'https://adventofcode.com/2020/leaderboard/private/view/00000.json'
# #file: 'README.md'
# starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2022_⭐-)[0-9]+(?=-red)'
# #daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red)'
- name: "2021"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2021
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2021_⭐-)[0-9]+(?=-darkblue)'
- name: "2020"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2020
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2020_⭐-)[0-9]+(?=-yellow)'
- name: "2019"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2019
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2019_⭐-)[0-9]+(?=-orange)'
- name: "2018"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2018
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2018_⭐-)[0-9]+(?=-lightgrey)'
- name: "2017"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2017
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2017_⭐-)[0-9]+(?=-green)'
- name: "2016"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2016
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2016_⭐-)[0-9]+(?=-blue)'
- name: "2015"
uses: joblo2213/aoc-badges-action@v3
with:
userid: ${{ secrets.AOC_USERID }}
session: ${{ secrets.AOC_SESSION }}
year: 2015
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2015_⭐-)[0-9]+(?=-black)'
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
commit-message: Update AoC Badges
title: changes to AoC Badges
add-paths: |
README.md
assignees: asphaltbuffet