From 83a4fd8b8759c99fabb435eac7a8e707febd41f9 Mon Sep 17 00:00:00 2001 From: WorldTeacher Date: Fri, 23 May 2025 17:57:59 +0200 Subject: [PATCH] refactor: reorganize version bump steps in release workflow --- .gitea/workflows/release.yml | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 1d5a22a..0a9a187 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -65,22 +65,6 @@ jobs: run: | git config user.name "Gitea CI" git config user.email "ci@git.theprivateserver.de" - - name: Bump version - id: bump - run: | - 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<> $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: Push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: ${{ github.ref }} - name: Create release notes run: | @@ -103,6 +87,22 @@ jobs: --push . + - name: Bump version + id: bump + run: | + 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<> $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: Push changes + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} - name: Create release id: create_release if: ${{ github.event.inputs.github_release == 'true' }}