Skip to content

Commit 65f5853

Browse files
Chunqiang SUNrohandubal
authored andcommitted
[skip test] clean up untracked files before merge (#875)
* [skip test] Update CircleCI config for merge to master
1 parent c06923c commit 65f5853

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.circleci/config.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -882,10 +882,15 @@ jobs:
882882
name: merge change to master
883883
command: |
884884
git config --local user.name "${GITHUB_USER}"
885+
git status
885886
git checkout master
887+
git status
886888
git fetch origin
887-
git reset origin/master
888-
git checkout .
889+
git status
890+
git pull
891+
git status
892+
git clean -fd
893+
git status
889894
commitlog=$(git log master -20)
890895
currentcommit="${CIRCLE_SHA1}"
891896
echo "currentcommit=$currentcommit"
@@ -897,10 +902,11 @@ jobs:
897902
echo "merge change from devlop to master"
898903
currentcommit="${CIRCLE_SHA1}"
899904
lastcommitmessage=$(git log --format=%B -n 1 ${currentcommit})
900-
901-
git merge develop --no-edit --commit -m "[Merge develop to master by circleci] $lastcommitmessage"
905+
git status
906+
git merge develop
907+
git status
902908
echo "push change"
903-
git push -q https://${GITHUB_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git
909+
git push https://${GITHUB_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git
904910
fi
905911
906912

0 commit comments

Comments
 (0)