Switch to uv #5
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: uv lock file maintenance | |
on: | |
pull_request: | |
paths: | |
- "pyproject.toml" | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
lock: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
- uses: astral-sh/setup-uv@v6 | |
with: | |
enable-cache: true | |
- name: "Run uv lock command" | |
run: uv lock | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
id: auto-commit-action | |
with: | |
commit_message: Regenerate uv.lock | |
- name: "Run if changes have been detected" | |
if: steps.auto-commit-action.outputs.changes_detected == 'true' | |
run: echo "Changes!" | |
- name: "Run if no changes have been detected" | |
if: steps.auto-commit-action.outputs.changes_detected == 'false' | |
run: echo "No Changes!" |