Skip to content

Commit 9410724

Browse files
committed
trying to find it using just the year
1 parent e5383b8 commit 9410724

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/update_aoc_stars.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
userid: 44566
2121
session: ${{ secrets.AOC_SESSION }} # secret containing session code, see setup on how to obtain
2222
year: 2024
23+
dayRegex: '(?<=\[2024\]\(https:\/\/img\.shields\.io\/badge\/day%20📅-)[0-9]+(?=-blue\))' # Regular expression that finds the content of the day badge in your file.
24+
starsRegex: '(?<=\[2024\]\(https:\/\/img\.shields\.io\/badge\/stars%20⭐-)[0-9]+(?=-yellow\))'
2325

2426
- uses: stefanzweifel/git-auto-commit-action@v4 # Step that pushes these local changes back to your github repo
2527
with:

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
| Year | Stars | Days Completed |
66
|------|-------|----------------|
7-
| 2024 | ![](https://img.shields.io/badge/stars%20⭐-8-yellow) | ![](https://img.shields.io/badge/days%20completed-4-red) |
8-
| 2023 | ![](https://img.shields.io/badge/stars%20⭐-8-yellow) | ![](https://img.shields.io/badge/days%20completed-4-red) |
7+
| 2024 | ![2024](https://img.shields.io/badge/stars%20⭐-8-yellow) | ![2024](https://img.shields.io/badge/days%20completed-4-red) |
8+
| 2023 | ![](https://img.shields.io/badge/stars%20⭐-35-yellow) | ![](https://img.shields.io/badge/days%20completed-17-red) |
99

1010
[adventofcode.com](https://adventofcode.com)

0 commit comments

Comments
 (0)