From 7e828ebb5c501a9ab8fca02c0395836964de9905 Mon Sep 17 00:00:00 2001 From: Marco Maatz Date: Sat, 19 Oct 2024 00:42:58 +0200 Subject: [PATCH] cut every prefix --- .gitea/workflows/parseVersion.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/parseVersion.yaml b/.gitea/workflows/parseVersion.yaml index c268f85..d3435d2 100644 --- a/.gitea/workflows/parseVersion.yaml +++ b/.gitea/workflows/parseVersion.yaml @@ -29,8 +29,8 @@ jobs: steps: - id: parseStep run: | - VERSION="${{ inputs.version }}" - VERSION="${VERSION#refs/tags/}" + VERSION=$(echo ${{ inputs.version }} | sed 's|.*/||') + IFS='.' read -r major minor patch build <<< "$VERSION" if [ -z "$build" ]; then