Update AoC Badges #54
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 AoC Badges | |
on: | |
schedule: | |
- cron: "7 9 * 12 *" | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "2024" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2024 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2024_⭐-)[0-9]+(?=-blue)' | |
# - name: "2023" | |
# uses: joblo2213/aoc-badges-action@v3 | |
# with: | |
# userid: ${{ secrets.AOC_USERID }} | |
# session: ${{ secrets.AOC_SESSION }} | |
# year: 2023 | |
# #leaderboard: 'https://adventofcode.com/2020/leaderboard/private/view/00000.json' | |
# #file: 'README.md' | |
# starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2023_⭐-)[0-9]+(?=-pink)' | |
# #daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red)' | |
# - name: "2022" | |
# uses: joblo2213/aoc-badges-action@v3 | |
# with: | |
# userid: ${{ secrets.AOC_USERID }} | |
# session: ${{ secrets.AOC_SESSION }} | |
# year: 2022 | |
# #leaderboard: 'https://adventofcode.com/2020/leaderboard/private/view/00000.json' | |
# #file: 'README.md' | |
# starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2022_⭐-)[0-9]+(?=-red)' | |
# #daysCompletedRegex: '(?<=https:\/\/img\.shields\.io\/badge\/days%20completed-)[0-9]+(?=-red)' | |
- name: "2021" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2021 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2021_⭐-)[0-9]+(?=-darkblue)' | |
- name: "2020" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2020 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2020_⭐-)[0-9]+(?=-yellow)' | |
- name: "2019" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2019 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2019_⭐-)[0-9]+(?=-orange)' | |
- name: "2018" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2018 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2018_⭐-)[0-9]+(?=-lightgrey)' | |
- name: "2017" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2017 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2017_⭐-)[0-9]+(?=-green)' | |
- name: "2016" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2016 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2016_⭐-)[0-9]+(?=-blue)' | |
- name: "2015" | |
uses: joblo2213/aoc-badges-action@v3 | |
with: | |
userid: ${{ secrets.AOC_USERID }} | |
session: ${{ secrets.AOC_SESSION }} | |
year: 2015 | |
starsRegex: '(?<=https:\/\/img\.shields\.io\/badge\/2015_⭐-)[0-9]+(?=-black)' | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
commit-message: Update AoC Badges | |
title: changes to AoC Badges | |
add-paths: | | |
README.md | |
assignees: asphaltbuffet |