From db5b978d1b0a832fa16a741b1f5dd4572c86cd3a Mon Sep 17 00:00:00 2001 From: sck_0 Date: Tue, 27 Jan 2026 10:11:21 +0100 Subject: [PATCH] chore: render star history chart as png --- .github/workflows/star-history.yml | 15 +++++++++++---- README.md | 2 +- assets/star-history.svg | 1 - 3 files changed, 12 insertions(+), 6 deletions(-) delete mode 100644 assets/star-history.svg diff --git a/.github/workflows/star-history.yml b/.github/workflows/star-history.yml index 663ed69d..14b673bf 100644 --- a/.github/workflows/star-history.yml +++ b/.github/workflows/star-history.yml @@ -15,24 +15,31 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Fetch latest chart (SVG) + - name: Install SVG renderer + run: | + set -euo pipefail + sudo apt-get update + sudo apt-get install -y librsvg2-bin + + - name: Fetch latest chart (SVG) and render PNG run: | set -euo pipefail mkdir -p assets curl -fsSL \ "https://api.star-history.com/svg?repos=sickn33/antigravity-awesome-skills&type=date&legend=top-left" \ - -o assets/star-history.svg + -o /tmp/star-history.svg + rsvg-convert /tmp/star-history.svg -o assets/star-history.png - name: Commit and push if changed run: | set -euo pipefail if git diff --quiet; then - echo "No changes in star-history.svg" + 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.svg + git add assets/star-history.png git commit -m "chore: update star history chart" git push diff --git a/README.md b/README.md index 652f8ab7..46dd54ab 100644 --- a/README.md +++ b/README.md @@ -525,4 +525,4 @@ We officially thank the following contributors for their help in making this rep ## Star History -[![Star History Chart](assets/star-history.svg)](https://www.star-history.com/#sickn33/antigravity-awesome-skills&type=date&legend=top-left) +[![Star History Chart](assets/star-history.png)](https://www.star-history.com/#sickn33/antigravity-awesome-skills&type=date&legend=top-left) diff --git a/assets/star-history.svg b/assets/star-history.svg deleted file mode 100644 index 2a4ffca3..00000000 --- a/assets/star-history.svg +++ /dev/null @@ -1 +0,0 @@ -star-history.comThu 15Sat 17Mon 19Wed 21Fri 23Jan 25Tue 27 1.0k2.0k3.0k4.0ksickn33/antigravity-awesome-skillsStar HistoryDateGitHub Stars \ No newline at end of file