2024-10-07 13:12:25 +03:00
|
|
|
name: uv
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "pyproject.toml"
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
lock:
|
2024-10-12 19:46:45 +03:00
|
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
2024-10-07 13:12:25 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
|
|
steps:
|
|
|
|
- name: Checkout with token
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: ${{ env.GH_PAT != '' }}
|
|
|
|
with:
|
|
|
|
token: ${{ env.GH_PAT }}
|
|
|
|
|
|
|
|
- name: Checkout without token
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
if: ${{ env.GH_PAT == '' }}
|
|
|
|
|
2024-11-25 15:47:25 +03:00
|
|
|
- uses: astral-sh/setup-uv@v4
|
2024-10-07 13:12:25 +03:00
|
|
|
with:
|
|
|
|
enable-cache: true
|
|
|
|
- run: uv lock
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
with:
|
|
|
|
commit_message: Regenerate uv.lock
|