chore: render star history chart as png

This commit is contained in:
sck_0
2026-01-27 10:11:21 +01:00
parent 5862c73f4d
commit db5b978d1b
3 changed files with 12 additions and 6 deletions

View File

@@ -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

View File

@@ -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)

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 64 KiB