Skip to content

Commit

Permalink
Allow X.Y.Z-N as version and check Z-Way is X.Y.Z
Browse files Browse the repository at this point in the history
  • Loading branch information
PoltoS committed Jul 27, 2023
1 parent e721c08 commit 4b2aba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Check Z-Way version
run: |
export ZWAY_VER=$(cd /opt/z-way-server && ./z-way-server --version | sed 's/Z-Way version v\([^ ]*\) .*/\1/')
export PKG_VER=$(cat pom.xml | grep version | head -n 1 | sed '0,/<version>/ { s|.*<version>\(.*\)</version>.*|\1| }')
export PKG_VER=$(cat pom.xml | grep version | head -n 1 | sed '0,/<version>/ { s|.*<version>\(.*\)\(-.*\)</version>.*|\1| }')
echo "Z-Way version: ${ZWAY_VER}"
echo "Package version: ${PKG_VER}"
test "${ZWAY_VER}" == "${PKG_VER}"
Expand Down

0 comments on commit 4b2aba1

Please sign in to comment.