chore(ci): switch to use uv bump instead of bump-my-version
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user