mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-10077] ADF's cron job, make it smarter by avoiding publishing on NPM and triggering the PR upstream (#7725)
* Avoid the publish on NPM and create useless PR upstream if same ADF sha * Remove useless file
This commit is contained in:
@@ -126,8 +126,14 @@ fi
|
||||
|
||||
rm -rf $TEMP_GENERATOR_DIR
|
||||
|
||||
update "generator-alfresco-adf-app"
|
||||
update "alfresco-content-app"
|
||||
update "alfresco-apps"
|
||||
isSameADFSha=$(node $BUILD_PIPELINE_DIR/adf-same-commit-verify.js --token=$TOKEN --head=$BRANCH_TO_CREATE --repo=$NAME_REPO --commit=$COMMIT )
|
||||
if [ "$isSameADFSha" = 'true' ]; then
|
||||
echo 'ADF sha is the same. No need to create another pr'
|
||||
else
|
||||
update "generator-alfresco-adf-app"
|
||||
update "alfresco-content-app"
|
||||
update "alfresco-apps"
|
||||
fi
|
||||
|
||||
|
||||
exit $?
|
||||
|
Reference in New Issue
Block a user