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