Update Advent of Code badges #2739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |