fix: Improve version determination by trimming whitespace in release workflow
This commit is contained in:
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user