File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ cache:
1010
1111git :
1212 depth : false
13+
14+ branches :
15+ only :
16+ - master
1317
1418before_script :
1519 - bash ci/commit-lockfile.sh
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ if ! git diff-index --quiet HEAD --; then
88 git config --global user.email " $GITHUB_EMAIL "
99 git config --global user.name " Travis CI"
1010 git config --global push.default simple
11+ git remote add jenkins https://" $GITHUB_TOKEN " @github.com/" $TRAVIS_REPO_SLUG " .git
1112
1213 git add package-lock.json
1314 git commit -m " chore(*): update lockfile"
1415 LAST_COMMIT=` git rev-parse HEAD`
15- git remote
16- git push origin $LAST_COMMIT : $TRAVIS_PULL_REQUEST_BRANCH
16+ git push jenkins $LAST_COMMIT : $TRAVIS_PULL_REQUEST_BRANCH
17+ git remote rm jenkins
1718fi
You can’t perform that action at this time.
0 commit comments