From f1558c5181b539a8a8e1687606a0fad9b79b29bf Mon Sep 17 00:00:00 2001 From: DARKZOUL5 Date: Wed, 18 Mar 2026 17:34:44 +0200 Subject: [PATCH] Simplify version extraction logic in build workflow by removing conditional checks for event types --- .github/workflows/build.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a81e9b8..43ace38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -247,13 +247,7 @@ jobs: id: version shell: bash run: | - if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then - VERSION="${{ inputs.tag }}" - elif [ "${{ github.event_name }}" = "release" ]; then - VERSION="${{ github.event.release.tag_name }}" - else - VERSION="${{ github.ref_name }}" - fi + VERSION="${{ inputs.tag }}" VERSION="${VERSION#v}" echo "version=$VERSION" >> $GITHUB_OUTPUT - name: Set docker image names