You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/badges.yml
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,16 @@ jobs:
14
14
steps:
15
15
- uses: actions/checkout@v3 # clones your repo
16
16
17
+
- uses: joblo2213/aoc-badges-action@v3
18
+
with:
19
+
userid: 23810# your user id, see setup on how to obtain
20
+
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
21
+
year: 2024# The year for which stats should be retrieved
22
+
file: 'README.md'# The file that contains the badges
23
+
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow&year=2024)'# Regular expression that finds the content of the stars badge in your file.
24
+
daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red&year=2024)'# Regular expression that finds the content of the days completed badge in your file.
25
+
26
+
17
27
- uses: joblo2213/aoc-badges-action@v3
18
28
with:
19
29
userid: 23810# your user id, see setup on how to obtain
0 commit comments