mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-22 01:26:57 +03:00
Run uv lock when updating template version (#5478)
This commit is contained in:
parent
abc199d5ef
commit
8c1fac1b2e
2
.github/workflows/update-changelog.yml
vendored
2
.github/workflows/update-changelog.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git config --global user.name "github-actions"
|
git config --global user.name "github-actions"
|
||||||
git config --global user.email "action@github.com"
|
git config --global user.email "action@github.com"
|
||||||
- name: Update list
|
- name: Update changelog
|
||||||
run: uv run --frozen scripts/update_changelog.py
|
run: uv run --frozen scripts/update_changelog.py
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import datetime as dt
|
import datetime as dt
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
import subprocess
|
||||||
from collections.abc import Iterable
|
from collections.abc import Iterable
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
@ -51,6 +52,9 @@ def main() -> None:
|
||||||
update_version(setup_py_path, release)
|
update_version(setup_py_path, release)
|
||||||
print(f"Updated version in {setup_py_path}")
|
print(f"Updated version in {setup_py_path}")
|
||||||
|
|
||||||
|
# Run uv lock
|
||||||
|
subprocess.run(["uv", "lock"], cwd=ROOT)
|
||||||
|
|
||||||
# Commit changes, create tag and push
|
# Commit changes, create tag and push
|
||||||
update_git_repo([changelog_path, setup_py_path], release)
|
update_git_repo([changelog_path, setup_py_path], release)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user