-
Notifications
You must be signed in to change notification settings - Fork 1.5k
32 lines (27 loc) · 835 Bytes
/
Copy pathstar-history.yml
File metadata and controls
32 lines (27 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Update star history chart
on:
schedule:
- cron: "17 6 * * *" # daily, 06:17 UTC
workflow_dispatch:
permissions:
contents: write
jobs:
update-chart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate SVGs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 .github/scripts/star_history.py
- name: Commit if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add assets/star-history.svg assets/star-history-dark.svg
if git diff --cached --quiet; then
echo "No changes"
else
git commit -m "chore: update star history chart"
git push
fi