-
Notifications
You must be signed in to change notification settings - Fork 1
87 lines (86 loc) · 3.2 KB
/
aoc-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
name: Update Advent of Code badges
on:
schedule:
- cron: '9 * * 1,12 *'
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Update 2015 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2015
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2015)'
- name: Update 2016 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2016
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2016)'
- name: Update 2017 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2017
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2017)'
- name: Update 2018 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2018
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2018)'
- name: Update 2019 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2019
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2019)'
- name: Update 2020 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2020
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2020)'
- name: Update 2021 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2021
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2021)'
- name: Update 2022 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2022
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2022)'
- name: Update 2023 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2023
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2023)'
- name: Update 2024 badge
uses: joblo2213/aoc-badges-action@v3
with:
year: 2023
userid: 1064020
session: ${{ secrets.AOC_SESSION }}
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow)(?=.*2024)'
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update badges
file_pattern: README.md