From 03fdf8944267f517f5e440d8ae5a0f270d2decf9 Mon Sep 17 00:00:00 2001 From: Roberto Guagliardo Date: Sat, 10 Jan 2026 15:50:03 +0000 Subject: [PATCH] fix: Improve version determination by trimming whitespace in release workflow --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1f72ef5..98eba72 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,8 +34,8 @@ jobs: - name: Determine plugin version id: meta run: | - VERSION=$(grep -E "^\\s*\\*\\s*Version:" -m 1 siti-stock-plugin.php | sed -E 's/.*Version:\\s*//') - VERSION=$(echo "$VERSION" | tr -d '\\r') + VERSION=$(grep -E "^[[:space:]]*\\*[[:space:]]*Version:" -m 1 siti-stock-plugin.php | sed -E 's/.*Version:[[:space:]]*//') + VERSION=$(echo "$VERSION" | tr -d '\\r' | xargs) if [ -z "$VERSION" ]; then echo "::error::Kon pluginversie niet bepalen." exit 1