mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-01 22:14:08 +03:00
3252aa7ae7
* Add workflow to keep uv.lock up to date Should do the job for dependabot updates * Only run uv lock workflow when GH_PAT is set * Make a change to pyproject.toml * Attempt to fix workflow syntax * Attempt to fix workflow syntax * Regenerate uv.lock
35 lines
694 B
YAML
35 lines
694 B
YAML
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 }}
|
|
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 == '' }}
|
|
|
|
- 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
|