From 65e4a798bed135b3674231253ceecded9e2a1cd3 Mon Sep 17 00:00:00 2001 From: sck_0 Date: Tue, 27 Jan 2026 10:13:07 +0100 Subject: [PATCH] chore(ci): commit star history png when untracked --- .github/workflows/star-history.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/star-history.yml b/.github/workflows/star-history.yml index 14b673bf..67e591b4 100644 --- a/.github/workflows/star-history.yml +++ b/.github/workflows/star-history.yml @@ -33,13 +33,12 @@ jobs: - name: Commit and push if changed run: | set -euo pipefail - if git diff --quiet; then - echo "No changes in star-history.png" - exit 0 - fi - git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" git add assets/star-history.png + if git diff --cached --quiet; then + echo "No changes in star-history.png" + exit 0 + fi git commit -m "chore: update star history chart" git push