Skip to content

Commit

Permalink
add readme badge
Browse files Browse the repository at this point in the history
  • Loading branch information
merrywhether committed Dec 5, 2024
1 parent 0d851b7 commit f10d676
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/readme-stars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,26 @@ jobs:
exit 1
fi
- name: Update README stars
id: update_readme_stars
- name: Update README progress
id: update_readme_progress
if: steps.check_commit_message.outcome == 'success' || github.event_name != 'push'
uses: k2bd/advent-readme-stars@v1
with:
userId: 4388690
year: 2024
sessionCookie: ${{ secrets.AOC_SESSION }}

- name: Update README badge
id: update_readme_badge
if: steps.check_commit_message.outcome == 'success' || github.event_name != 'push'
uses: joblo2213/aoc-badges-action@v3
with:
userId: 4388690
year: 2024
session: ${{ secrets.AOC_SESSION }}

- name: Commit changes
if: steps.update_readme_stars.outcome == 'success'
if: steps.update_readme_progress.conclusion == 'success' && steps.update_readme_badge.conclusion == 'success'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: auto-update README stars
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![](https://img.shields.io/badge/stars%1⭐-34-yellow)](#2024-results)

# AoC2024

[Advent of Code 2024](https://adventofcode.com/2024) using(/learning) Deno and Zed.
Expand Down

0 comments on commit f10d676

Please sign in to comment.