mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-13 15:32:36 +03:00
36 lines
903 B
YAML
36 lines
903 B
YAML
name: uv
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "pyproject.toml"
|
|
# Manual trigger
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
lock:
|
|
if: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'pull_request' && (github.event.pull_request.user.login == 'pyup-bot' || github.event.pull_request.user.login == 'dependabot[bot]') }}
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
|
steps:
|
|
- name: Checkout with token
|
|
uses: actions/checkout@v5
|
|
if: ${{ env.GH_PAT != '' }}
|
|
with:
|
|
token: ${{ env.GH_PAT }}
|
|
|
|
- name: Checkout without token
|
|
uses: actions/checkout@v5
|
|
if: ${{ env.GH_PAT == '' }}
|
|
|
|
- uses: astral-sh/setup-uv@v6
|
|
- run: uv lock
|
|
- uses: stefanzweifel/git-auto-commit-action@v6
|
|
with:
|
|
commit_message: Regenerate uv.lock
|