Add workflow to run uv lock #8
Workflow file for this run
This file contains 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 | ||
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 GitHub Actions / uvInvalid workflow file
|
||
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 |