Skip to content

Commit 4964880

Browse files
committed
Update
1 parent c167e42 commit 4964880

21 files changed

+17426
-885
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Update README
2+
3+
on:
4+
schedule:
5+
# Run once a week on Monday at 00:00 UTC
6+
- cron: '0 0 * * 1'
7+
workflow_dispatch: # Allow manual triggering
8+
push:
9+
branches:
10+
- master
11+
paths:
12+
- 'CONTRIBUTE_README.md'
13+
- 'scripts/**'
14+
15+
jobs:
16+
update-readme:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0 # Fetch all history for git operations
24+
25+
- name: Set up Java
26+
uses: actions/setup-java@v4
27+
with:
28+
distribution: 'temurin'
29+
java-version: '25'
30+
31+
- name: Checkout existing stats cache
32+
run: |
33+
mkdir -p .tmp
34+
# Try to restore stats cache from previous run
35+
if git show HEAD:.tmp/github-stats.txt > .tmp/github-stats.txt 2>/dev/null; then
36+
echo "Restored existing stats cache from previous commit"
37+
else
38+
echo "No existing stats cache found, will fetch all data"
39+
fi
40+
41+
- name: Run workflow
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
run: |
45+
java --enable-preview --source 25 scripts/run_workflow.java
46+
47+
- name: Commit changes
48+
run: |
49+
git config --local user.email "[email protected]"
50+
git config --local user.name "GitHub Action"
51+
git add README.md
52+
# Always commit the stats cache so it persists for next run
53+
git add .tmp/github-stats.txt || true
54+
if git diff --staged --quiet; then
55+
echo "No changes to commit"
56+
else
57+
git commit -m "Update README with latest GitHub stars and commit dates [skip ci]"
58+
git push
59+
fi
60+

.tmp/generated-tables.html

Lines changed: 1231 additions & 0 deletions
Large diffs are not rendered by default.

.tmp/generated-tables.md

Lines changed: 1091 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)