mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[AAE-2570] prepare script to change name development to develop (#5675)
* prepare script to change name development to develop * travis for develop
This commit is contained in:
@@ -11,7 +11,7 @@ npm install @alfresco/adf-cli@alpha
|
||||
|
||||
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
|
||||
then
|
||||
if [[ $TRAVIS_BRANCH == "development" ]];
|
||||
if [[ $TRAVIS_BRANCH == "develop" ]];
|
||||
then
|
||||
NEXT_VERSION=-nextalpha
|
||||
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
||||
|
@@ -7,7 +7,7 @@ cd $DIR/../../../
|
||||
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
|
||||
then
|
||||
TAG_NPM=latest
|
||||
if [[ $TRAVIS_BRANCH == "development" ]];
|
||||
if [[ $TRAVIS_BRANCH == "develop" ]];
|
||||
then
|
||||
TAG_NPM=alpha
|
||||
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
|
||||
|
@@ -45,7 +45,7 @@ rm -rf $TEMP_GENERATOR_DIR;
|
||||
|
||||
git clone https://$TOKEN@github.com/$NAME_REPO.git $TEMP_GENERATOR_DIR
|
||||
cd $TEMP_GENERATOR_DIR
|
||||
git checkout development
|
||||
git checkout develop
|
||||
|
||||
BRANCH="ADF-update-$VERSION"
|
||||
git checkout -b $BRANCH
|
||||
@@ -56,6 +56,6 @@ git add .
|
||||
git commit -m "Update ADF packages version $VERSION"
|
||||
git push -u origin $BRANCH
|
||||
|
||||
curl -H "Authorization: token $TOKEN" -X POST -d '{"body":"Update ADF packages version '$VERSION'","head":"'$BRANCH'","base":"development","title":"Update ADF packages version '$VERSION'"}' https://api.github.com/repos/$NAME_REPO/pulls
|
||||
curl -H "Authorization: token $TOKEN" -X POST -d '{"body":"Update ADF packages version '$VERSION'","head":"'$BRANCH'","base":"develop","title":"Update ADF packages version '$VERSION'"}' https://api.github.com/repos/$NAME_REPO/pulls
|
||||
|
||||
rm -rf $TEMP_GENERATOR_DIR;
|
||||
|
Reference in New Issue
Block a user