From f10d6760c35899228bbc5de508ebf55e9c9aa03b Mon Sep 17 00:00:00 2001 From: merrywhether Date: Thu, 5 Dec 2024 01:23:54 -0800 Subject: [PATCH] add readme badge --- .github/workflows/readme-stars.yml | 15 ++++++++++++--- README.md | 2 ++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/readme-stars.yml b/.github/workflows/readme-stars.yml index 12137dd..1fb2e2b 100644 --- a/.github/workflows/readme-stars.yml +++ b/.github/workflows/readme-stars.yml @@ -36,8 +36,8 @@ 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: @@ -45,8 +45,17 @@ jobs: 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 diff --git a/README.md b/README.md index 368e9c7..0e0b00b 100644 --- a/README.md +++ b/README.md @@ -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.