File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,18 @@ cache:
1010
1111git :
1212 depth : false
13+
14+ branches :
15+ only :
16+ - master
1317
14- after_success :
18+ before_script :
1519 - bash ci/commit-lockfile.sh
1620
1721notifications :
1822 email : false
1923 slack :
2024 on_success : change
25+ on_failure : always
2126 rooms :
2227 - heyprof:OnsMQaj2FtGkJ972FzpPw60T#pipelines-front
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33if [[ $TRAVIS_PULL_REQUEST_BRANCH != * " greenkeeper" * ]]; then
4- # Not a GreenKeeper Pull Request, aborting
54 exit 0
65fi
76
87if ! git diff-index --quiet HEAD --; then
9- echo " Commit and push lockfile"
108 git config --global user.email " $GITHUB_EMAIL "
119 git config --global user.name " Travis CI"
1210 git config --global push.default simple
11+ git remote add jenkins https://" $GITHUB_TOKEN " @github.com/" $TRAVIS_REPO_SLUG " .git
1312
1413 git add package-lock.json
15- git commit -m " chore(*): update lockfile"
16- git push
14+ git commit -m " chore(*): update lockfile [ci skip]"
15+ LAST_COMMIT=` git rev-parse HEAD`
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