mirror of
https://github.com/gnmyt/LicenseAPI.git
synced 2026-01-11 02:31:46 +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
|
id: version_check
|
||||||
run: |
|
run: |
|
||||||
git fetch origin main
|
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"
|
echo "LAST_VERSION: $LAST_VERSION"
|
||||||
if [ "$LAST_VERSION" == "$VERSION" ]; then
|
if [ "$LAST_VERSION" == "$VERSION" ]; then
|
||||||
echo "Version did not change. Exiting..."
|
echo "Version did not change. Exiting..."
|
||||||
|
|||||||
Reference in New Issue
Block a user