Run uv lock when updating template version

This commit is contained in:
Bruno Alla 2024-10-17 21:28:52 +01:00
parent ca405049ad
commit 413bf339a9
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -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 }}

View File

@ -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)