fix: Improve version determination by trimming whitespace in release workflow

This commit is contained in:
2026-01-10 15:50:03 +00:00
parent 97ca8c4015
commit 03fdf89442

View File

@@ -34,8 +34,8 @@ jobs:
- name: Determine plugin version - name: Determine plugin version
id: meta id: meta
run: | run: |
VERSION=$(grep -E "^\\s*\\*\\s*Version:" -m 1 siti-stock-plugin.php | sed -E 's/.*Version:\\s*//') VERSION=$(grep -E "^[[:space:]]*\\*[[:space:]]*Version:" -m 1 siti-stock-plugin.php | sed -E 's/.*Version:[[:space:]]*//')
VERSION=$(echo "$VERSION" | tr -d '\\r') VERSION=$(echo "$VERSION" | tr -d '\\r' | xargs)
if [ -z "$VERSION" ]; then if [ -z "$VERSION" ]; then
echo "::error::Kon pluginversie niet bepalen." echo "::error::Kon pluginversie niet bepalen."
exit 1 exit 1