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