File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments