Fix deploy-java.yml workflow

This commit is contained in:
Mathias Wagner
2024-07-21 15:52:47 +02:00
parent fc2f31566d
commit 4f6cf697a2

View File

@ -37,7 +37,7 @@ jobs:
id: version_check
run: |
git fetch origin main
LAST_VERSION=$(git show origin/main:integrations/java/pom.xml | xmllint --xpath "string(//version)" -)
LAST_VERSION=$(git show origin/main:integrations/java/pom.xml | grep -m1 '<version>' | sed -E 's/.*<version>([^<]+)<\/version>.*/\1/')
echo "LAST_VERSION: $LAST_VERSION"
if [ "$LAST_VERSION" == "$VERSION" ]; then
echo "Version did not change. Exiting..."