Skip to content

Add workflow to run uv lock #8

Add workflow to run uv lock

Add workflow to run uv lock #8

name: uv
on:
pull_request:
paths:
- "pyproject.toml"
permissions:
contents: write
pull-requests: write
jobs:
lock:
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.GH_PAT }}
# Only run when GH_PAT is set
if: ${{ env.GH_PAT != '' }}

Check failure on line 18 in .github/workflows/dependabot-uv-lock.yml

View workflow run for this annotation

GitHub Actions / uv

Invalid workflow file

The workflow is not valid. .github/workflows/dependabot-uv-lock.yml (Line: 18, Col: 9): Unrecognized named-value: 'env'. Located at position 1 within expression: env.GH_PAT != ''
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
- uses: astral-sh/setup-uv@v3
with:
enable-cache: true
- run: uv lock
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Regenerate uv.lock