test bump using uv tool

This commit is contained in:
2025-05-20 10:25:28 +02:00
parent 87b6d9cee7
commit 8d07b551ed

View File

@@ -35,21 +35,22 @@ jobs:
- name: Install the project - name: Install the project
run: uv sync --locked --all-extras --dev run: uv sync --locked --all-extras --dev
- name: Set Git identity
run: |
git config user.name "Gitea CI"
git config user.email "ci@git.theprivateserver.de"
- name: Bump version - name: Bump version
id: bump id: bump
uses: callowayproject/bump-my-version@master
env:
BUMPVERSION_TAG: "true"
with:
args: ${{ inputs.bump }}
github-token: ${{ secrets.TOKEN }}
- name: Check
if: steps.bump.outputs.bumped == 'true'
run: | run: |
echo "Version was bumped from ${{ steps.bump.outputs.previous-version }} to ${{ steps.bump.outputs.current-version }}!" uv tool install bump-my-version
uv tool run bump-my-version bump ${{ github.event.inputs.bump }} --allow-dirty
# echo the version to github env, the version is shown by using uv tool run bump-my-version show current_version
echo "VERSION<<EOF" >> $GITHUB_ENV
echo "$(uv tool run bump-my-version show current_version)" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Check version
run: echo ${{ env.VERSION }}
- name: Add release notes to environment - name: Add release notes to environment
id: add_release_notes id: add_release_notes