From 4cfb9a2ae9946863ae6fa91dcfc4ea2cd266c7b8 Mon Sep 17 00:00:00 2001 From: Christina Kirk Date: Sat, 9 Dec 2023 19:45:15 +0100 Subject: [PATCH] badges for 2022 --- .github/workflows/aoc22.yml | 28 +++++++++++++++++++++++ .github/workflows/{main.yml => aoc23.yml} | 2 +- README.md | 9 ++++++-- 3 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/aoc22.yml rename .github/workflows/{main.yml => aoc23.yml} (98%) diff --git a/.github/workflows/aoc22.yml b/.github/workflows/aoc22.yml new file mode 100644 index 0000000..b5382dd --- /dev/null +++ b/.github/workflows/aoc22.yml @@ -0,0 +1,28 @@ +name: Update AoC Badges 22 +on: + push: + paths-ignore: + - 'src/solutions23/**' +jobs: + update: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 # clones your repo + + - uses: joblo2213/aoc-badges-action@v3 + with: + userid: 2263584 + session: ${{ secrets.SESSION }} + +# Optional inputs: + year: 2022 # The year for which stats should be retrieved +# leaderboard: 'https://adventofcode.com/2020/leaderboard/private/view/00000.json' # The url of the leaderboard from witch the data is fetched. Typically your private leaderboard. +# file: 'README.md' # The file that contains the badges +# dayRegex: '(?<=https:\/\/img\.shields\.io\/badge\/day%20📅-)[0-9]+(?=-blue)' # Regular expression that finds the content of the day badge in your file. + starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/⭐%20stars%20⭐-)[0-9]+(?=-yellow)' # Regular expression that finds the content of the stars badge in your file. + daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-blue)' # Regular expression that finds the content of the days completed badge iun your file. + + - uses: stefanzweifel/git-auto-commit-action@v4 # Step that pushes these local changes back to your github repo + with: + commit_message: Update badges + file_pattern: README.md diff --git a/.github/workflows/main.yml b/.github/workflows/aoc23.yml similarity index 98% rename from .github/workflows/main.yml rename to .github/workflows/aoc23.yml index 57c3c5b..2025f07 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/aoc23.yml @@ -1,4 +1,4 @@ -name: Update AoC Badges +name: Update AoC Badges 23 on: push: # run on push, be careful with this setting # as the workflow should only be triggered at a rate lower than diff --git a/README.md b/README.md index 59bbf1d..c42f851 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,13 @@ Welcome to the Advent of Code[^aoc] Kotlin project created by [kohloderso][githu In this repository, kohloderso is about to provide solutions for the puzzles using [Kotlin][kotlin] language. -![](https://img.shields.io/badge/day%20📅-9-blue) -![](https://img.shields.io/badge/stars%20⭐-18-yellow) +2023: +![](https://img.shields.io/badge/day%20📅-22-blue) +![](https://img.shields.io/badge/stars%20⭐-34-yellow) + +2022: +![](https://img.shields.io/badge/⭐%20stars%20⭐-34-yellow) +![](https://img.shields.io/badge/days%20completed-17-blue) [^aoc]: