We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17fdcb3 commit 68d0563Copy full SHA for 68d0563
1 file changed
.github/workflows/stats.yml
@@ -0,0 +1,17 @@
1
+name: Update Stats
2
+on:
3
+ schedule:
4
+ - cron: '0 6 * * *'
5
+jobs:
6
+ update:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v3
10
+ - name: Update STATS.md
11
+ run: |
12
+ gh api repos/${GITHUB_REPOSITORY} --jq '{stars:.stargazers_count,forks:.forks_count,issues:.open_issues_count}' > stats.json || true
13
+ echo "# Stats" > STATS.md
14
+ if [ -f stats.json ]; then cat stats.json >> STATS.md; fi
15
+ git add STATS.md || true
16
+ git commit -m "ci: update STATS.md [skip ci]" || true
17
+ git push || true
0 commit comments