diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9eedd8f9..d588a429 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: - name: Get Version from Commit Message id: get-version run: | - version=$(git log -1 --pretty=%B | grep -o -E '[0-9]+\.[0-9]+\.[0-9]+') + version=$(git log -1 --pretty=%B | grep -o -E '[v]?[0-9]+\.[0-9]+\.[0-9]+' | sed 's/^v//') echo "version=$version" >> $GITHUB_OUTPUT echo "Extracted version: $version"