AAE-11940 - fix upstream flow - update-project script and upstream trigger (#8125)

* fix conflict

* fix conflict

* fix conflict

* change pipe name

* change PR name env variable

* update PR title

* fix pr condition

* fix pr condition

* final check
This commit is contained in:
Maurizio Cacace
2023-01-12 12:04:19 +01:00
committed by GitHub
parent f6fd813a29
commit fe65f7c201
3 changed files with 13 additions and 7 deletions

View File

@@ -75,6 +75,7 @@ update_js_dependency() {
update() {
NAME_REPO=$1
PKG_VERSION=$(npm view $PKG@$VERSION version)
echo "Update dependencies $NAME_REPO"
git clone https://$TOKEN@github.com/Alfresco/$NAME_REPO.git $TEMP_GENERATOR_DIR
@@ -106,7 +107,7 @@ update() {
git push --force origin $BRANCH_TO_CREATE
fi
node $BUILD_PIPELINE_DIR/pr-creator.js --token=$TOKEN --title="Update branch for ADF ${PR_NUMBER} and JS-API ${JS_API_INSTALLED} [ci:force]" --head=$BRANCH_TO_CREATE --repo=$NAME_REPO --commit=$COMMIT
node $BUILD_PIPELINE_DIR/pr-creator.js --token=$TOKEN --title="Update branch for ADF ${PKG_VERSION} and JS-API ${JS_API_INSTALLED} [ci:force]" --head=$BRANCH_TO_CREATE --repo=$NAME_REPO --commit=$COMMIT
cd ..
rm -rf $TEMP_GENERATOR_DIR