From 2ac66357f3bf353d061538dc29a21c9dd35b4dc3 Mon Sep 17 00:00:00 2001 From: Simon <25969+snovak7@users.noreply.github.com> Date: Thu, 7 Aug 2025 23:48:17 +0200 Subject: [PATCH 1/2] chore: Adjust build workflow to refine version formatting and output logic --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7da0ce5..28a7688 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,14 +33,14 @@ jobs: 9.x - name: Set Default VERSION - run: echo "VERSION=0.0.0" >> $GITHUB_ENV + run: echo "VERSION=v0.0.0" >> $GITHUB_ENV - name: Set VERSION variable from tag - run: echo "VERSION=${{ github.event.release.tag_name}}" >> $GITHUB_ENV + run: echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }} - name: Read VERSION variable - run: echo "${VERSION}" + run: echo "${VERSION#v}" - name: Restore .NET Packages run: dotnet restore From deb1322546581c63cfd5bc4450d81ccc9eb775a0 Mon Sep 17 00:00:00 2001 From: Simon <25969+snovak7@users.noreply.github.com> Date: Thu, 7 Aug 2025 23:52:40 +0200 Subject: [PATCH 2/2] chore: Refine build workflow TAG/VERSION handling and formatting logic --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 28a7688..ea0af0e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,15 +32,18 @@ jobs: dotnet-version: | 9.x - - name: Set Default VERSION - run: echo "VERSION=v0.0.0" >> $GITHUB_ENV + - name: Set Default TAG + run: echo "TAG=v0.0.0" >> $GITHUB_ENV - - name: Set VERSION variable from tag - run: echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV + - name: Set TAG variable from tag + run: echo "TAG=${{ github.event.release.tag_name }}" >> $GITHUB_ENV if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }} + - name: Set VERSION variable + run: echo "VERSION=${TAG#v}" >> $GITHUB_ENV + - name: Read VERSION variable - run: echo "${VERSION#v}" + run: echo "${VERSION}" - name: Restore .NET Packages run: dotnet restore