chore(ci): switch to use uv bump instead of bump-my-version

This commit is contained in:
2025-12-01 11:03:22 +01:00
parent 085d4a9075
commit c7304b484a

View File

@@ -51,10 +51,9 @@ jobs:
- name: Bump version (local only) - name: Bump version (local only)
id: bump id: bump
run: | run: |
uv tool install bump-my-version uv version --bump "${{ github.event.inputs.bump }}"
uv tool run bump-my-version bump "${{ github.event.inputs.bump }}" version="$(uv version --short)"
version="$(uv tool run bump-my-version show current_version)"
echo "VERSION=$version" >> "$GITHUB_ENV" echo "VERSION=$version" >> "$GITHUB_ENV"
echo "version=$version" >> "$GITHUB_OUTPUT" echo "version=$version" >> "$GITHUB_OUTPUT"
@@ -155,6 +154,8 @@ jobs:
exit 1 exit 1
} }
& $env:UV_PATH self update
$version = "3.12" $version = "3.12"
Write-Host "Checking for Python $version via uv..." Write-Host "Checking for Python $version via uv..."
$exists = & $env:UV_PATH python list | Select-String $version -Quiet $exists = & $env:UV_PATH python list | Select-String $version -Quiet
@@ -238,9 +239,7 @@ jobs:
- name: Bump version and push - name: Bump version and push
run: | run: |
uv tool install bump-my-version uv version --bump "${{ github.event.inputs.bump }}"
uv tool run bump-my-version bump "${{ github.event.inputs.bump }}"
- name: Push version bump - name: Push version bump
uses: ad-m/github-push-action@master uses: ad-m/github-push-action@master
with: with: