Community Scan #55
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: Community Scan | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Run daily at midnight UTC | |
| workflow_dispatch: # Allow manual trigger | |
| permissions: | |
| contents: write | |
| jobs: | |
| scan-and-update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| pip install PyGithub | |
| - name: Run Community Scanner | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| GITHUB_REPOSITORY: ${{ github.repository }} | |
| run: | | |
| python src/scan_community.py | |
| - name: Commit and Push Changes | |
| run: | | |
| git config --global user.name 'ForkMonkey Bot' | |
| git config --global user.email 'bot@forkmonkey.ai' | |
| # Add all generated data files | |
| git add web/community_data.json | |
| git add web/leaderboard.json | |
| git add web/family_tree.json | |
| git add web/network_stats.json | |
| # Commit if there are changes | |
| git diff --staged --quiet || git commit -m "🔄 Update community data [skip ci]" | |
| git push |