Generate Issues Summary & Stats #33
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: Generate Issues Summary & Stats | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 3 */2 * *" | |
| jobs: | |
| issues-summary: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install Python dependencies | |
| run: pip install requests | |
| - name: Generate issues summary | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ISSUES_TOKEN }} | |
| REPO: ${{ github.repository }} | |
| run: python scripts/issues_summary.py | |
| - name: Generate issues summary | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.ISSUES_TOKEN }} | |
| REPO: ${{ github.repository }} | |
| run: python scripts/repo_stats.py | |
| - name: Commit updated JSON | |
| run: | | |
| git config user.name "issues-bot" | |
| git config user.email "issues-bot@users.noreply.github.com" | |
| git add issues-summary.json repo-stats.json | |
| if git diff --cached --quiet; then | |
| echo "No changes to commit" | |
| exit 0 | |
| fi | |
| git commit -m "Update issues summary and repo stats" | |
| git push |