weekly-project-update #34
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: weekly-project-update | |
| on: | |
| schedule: | |
| # 18:30 UTC Friday = 00:00 IST Saturday | |
| - cron: '30 18 * * 5' | |
| workflow_dispatch: | |
| jobs: | |
| update-projects: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests | |
| - name: Run update script | |
| run: python scripts/fetch_github_activity.py | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Generate PR Title | |
| run: | | |
| echo "PR_TITLE=Automated Update: $(date +'%Y W%V')" >> $GITHUB_ENV | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v8 | |
| with: | |
| commit-message: "refactor: weekly project update" | |
| title: "${{ env.PR_TITLE }}" | |
| body-path: "pr_body.txt" | |
| branch: "automated-project-update" | |
| base: "main" | |
| delete-branch: true |