mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-10 10:11:47 +00:00
Fix deploy-java.yml workflow
This commit is contained in:
2
.github/workflows/deploy-java.yml
vendored
2
.github/workflows/deploy-java.yml
vendored
@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user