Skip to content

Commit

Permalink
ci: add badges
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeladler committed Dec 7, 2024
1 parent b469758 commit 77d09fa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/badges.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Update AoC Badges
on:
schedule:
- cron: '6 5 1-25 12 *' # from the 1. December till 25. December every day at 5:06am (avoid load at full hours)

workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v4

- uses: joblo2213/aoc-badges-action@v3
with:
userid: 648624
session: ${{ secrets.AOC_SESSION }}
year: 2024

- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: update AoC badge"
file_pattern: README.md
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[![ci](https://github.com/michaeladler/aoc-2024/actions/workflows/ci.yml/badge.svg)](https://github.com/michaeladler/aoc-2024/actions/workflows/ci.yml)
![](https://img.shields.io/badge/stars%20⭐-2-yellow)

# 🎄 Advent of Code 2024 Solutions 🎄

## ⏱ Benchmarks
Expand Down

0 comments on commit 77d09fa

Please sign in to comment.