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