Enhance Javadoc update script in CI pipeline with improved logging for push actions

This commit is contained in:
2025-06-09 12:07:55 +02:00
parent 2c567d70b5
commit fd04d48a23
+1 -1
View File
@@ -77,12 +77,12 @@ javadoc:
script:
- rm -rf docs/apidocs
- mvn javadoc:javadoc -DskipTests -Pjavadoc
- git add docs/apidocs
- |
if ! git diff --quiet -- docs/apidocs; then
git add docs/apidocs
git commit -m "Update Javadocs"
git push https://${GITLAB_USERNAME}:${CI_PUSH_TOKEN}@gitlab.com/th-schwarz/CloudflareDNS-java.git ${CI_COMMIT_REF_NAME}
- echo "Commits found and pushed"
else
echo "No changes to commit"
fi