Update Progress #2
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
| # .github/workflows/update_checklist.yml | |
| name: Update Progress Checklist | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # Runs daily at midnight UTC | |
| workflow_dispatch: # Allows manual triggering | |
| push: | |
| paths: | |
| - 'PROGRESS.md' # Runs when checklist changes | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 1. Checkout your code | |
| - uses: actions/checkout@v4 | |
| # 2. Set up Python | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| # 3. Install dependencies | |
| - name: Install requirements | |
| run: | | |
| pip install -r scripts/requirements.txt | |
| # 4. Run your Python script | |
| - name: Update progress | |
| run: | | |
| python scripts/update_progress.py | |
| # 5. Commit changes | |
| - name: Commit updates | |
| run: | | |
| git config --global user.name 'GitHub Actions' | |
| git config --global user.email 'actions@github.com' | |
| git add . | |
| git commit -m "Automated progress update" | |
| git push |