Skip to content
Snippets Groups Projects
Commit e568c975 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

chore: Fix if statement

parent b54bea56
No related branches found
No related tags found
1 merge request!35build: New dummy version for testing the pipeline
Pipeline #3227 failed
...@@ -81,9 +81,12 @@ build-for-production: ...@@ -81,9 +81,12 @@ build-for-production:
fi fi
# If release tag does not already exist, commit and push pom with new version # If release tag does not already exist, commit and push pom with new version
- git add pom.xml - git add pom.xml
# Check if there are any changes staged for commit - |
- if ! git diff --cached --quiet; then if git diff --cached --quiet -- pom.xml; then
git commit -m "[ci skip] Set release version ${RELEASE_VERSION}"; git push origin $RELEASE_BRANCH echo "No changes to commit for pom.xml, skipping commit and push"
else
git commit -m "[ci skip] Set release version ${RELEASE_VERSION}"
git push origin $RELEASE_BRANCH
fi fi
# Build new war file # Build new war file
- echo "Build war file with version '$RELEASE_VERSION'" - echo "Build war file with version '$RELEASE_VERSION'"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment