chore: render star history chart as png
This commit is contained in:
15
.github/workflows/star-history.yml
vendored
15
.github/workflows/star-history.yml
vendored
@@ -15,24 +15,31 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
mkdir -p assets
|
mkdir -p assets
|
||||||
curl -fsSL \
|
curl -fsSL \
|
||||||
"https://api.star-history.com/svg?repos=sickn33/antigravity-awesome-skills&type=date&legend=top-left" \
|
"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
|
- name: Commit and push if changed
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
if git diff --quiet; then
|
if git diff --quiet; then
|
||||||
echo "No changes in star-history.svg"
|
echo "No changes in star-history.png"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git config user.name "github-actions[bot]"
|
git config user.name "github-actions[bot]"
|
||||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
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 commit -m "chore: update star history chart"
|
||||||
git push
|
git push
|
||||||
|
|||||||
@@ -525,4 +525,4 @@ We officially thank the following contributors for their help in making this rep
|
|||||||
|
|
||||||
## Star History
|
## Star History
|
||||||
|
|
||||||
[](https://www.star-history.com/#sickn33/antigravity-awesome-skills&type=date&legend=top-left)
|
[](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 |
Reference in New Issue
Block a user