Repository navigation
build(deps): bump mypy from 2.2.0 to 2.3.0 #137
Workflow file for this run
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: Update uv.lock | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| paths: | |
| - "pyproject.toml" | |
| - "requirements.txt" | |
| - "requirements_test.txt" | |
| - "requirements_lint.txt" | |
| - "requirements_typing.txt" | |
| - ".python-version" | |
| permissions: | |
| contents: read | |
| jobs: | |
| update-uv-lock: | |
| name: Regenerate uv.lock | |
| runs-on: ubuntu-latest | |
| if: github.event.pull_request.head.repo.full_name == github.repository | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout PR branch | |
| uses: actions/checkout@v7.0.0 | |
| with: | |
| ref: ${{ github.head_ref }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| cache-dependency-glob: "pyproject.toml" | |
| - name: Regenerate uv.lock | |
| run: uv lock | |
| - name: Commit updated uv.lock | |
| run: | | |
| if ! git diff --quiet uv.lock; then | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config user.name "GitHub Actions" | |
| git add uv.lock | |
| git commit -m "chore: regenerate uv.lock" | |
| git push | |
| else | |
| echo "uv.lock is already up-to-date" | |
| fi |