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
|
- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user