Add this workflow to your repo and your stats update automatically on every push.
Visit en-git.vercel.app/settings and copy your webhook token.
- Go to your repo → Settings → Secrets → Actions
- Click New repository secret
- Name:
ENGIT_TOKEN - Value: paste your token
- Save
Create .github/workflows/engit-stats.yml:
name: Update en-git Stats
on:
push:
branches: [main, master]
jobs:
update-stats:
runs-on: ubuntu-latest
steps:
- run: |
curl -X POST https://en-git.vercel.app/api/v1/webhook/refresh-stats \
-H "Content-Type: application/json" \
-d '{"username":"${{ github.actor }}","token":"${{ secrets.ENGIT_TOKEN }}"}'git add .github/workflows/engit-stats.yml
git commit -m "Add en-git auto-update"
git pushDone! Your stats now update automatically. View them at en-git.vercel.app/stats/YOUR_USERNAME
Need help? Open an issue