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:
6
.github/workflows/deploy-java.yml
vendored
6
.github/workflows/deploy-java.yml
vendored
@ -39,13 +39,13 @@ jobs:
|
||||
git fetch origin main
|
||||
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..."
|
||||
if [ -z "$LAST_VERSION" ] || [ "$LAST_VERSION" == "$VERSION" ]; then
|
||||
echo "Version did not change or no previous version found. Skipping deployment."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
- name: Build and deploy
|
||||
if: steps.version_check.outputs.VERSION != steps.get_version.outputs.VERSION
|
||||
if: steps.version_check.outputs.LAST_VERSION != steps.get_version.outputs.VERSION || steps.version_check.outputs.LAST_VERSION == ""
|
||||
run: |
|
||||
mvn -f integrations/java/pom.xml deploy \
|
||||
-DskipTests \
|
||||
|
||||
Reference in New Issue
Block a user