📊 Analytics Update #155
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 📊 Analytics Update | |
| on: | |
| pull_request: | |
| types: [closed] | |
| schedule: | |
| - cron: '0 */12 * * *' # Every 12 hours | |
| workflow_dispatch: | |
| jobs: | |
| update-analytics: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: 📥 Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: 🔧 Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: 📊 Generate Analytics | |
| run: | | |
| node .github/scripts/generate-analytics.js | |
| - name: 💾 Commit Analytics | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "GitForge Analytics Bot" | |
| git add .github/analytics/ | |
| git commit -m "📊 Auto-update: Analytics data [skip ci]" || exit 0 | |
| git push |