Dependency Update #12
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: Dependency Update | |
| on: | |
| schedule: | |
| # Run every Monday at 9 AM UTC | |
| - cron: '0 9 * * 1' | |
| workflow_dispatch: | |
| jobs: | |
| update-dependencies: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.9" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v2 | |
| with: | |
| version: "latest" | |
| - name: Update dependencies | |
| run: | | |
| uv lock --upgrade | |
| git config --local user.email "[email protected]" | |
| git config --local user.name "GitHub Action" | |
| git add uv.lock | |
| if git diff --staged --quiet; then | |
| echo "No dependency updates found" | |
| else | |
| git commit -m "chore: update dependencies via uv" | |
| git push origin main-copy | |
| fi |