We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96b5e23 commit 690f595Copy full SHA for 690f595
ci/commit-lockfile.sh
@@ -1,26 +1,17 @@
1
#!/bin/bash
2
3
-echo "What is going on ?"
4
-
5
-git status
6
-ls -lah
7
8
if [[ $TRAVIS_PULL_REQUEST_BRANCH != *"greenkeeper"* ]]; then
9
exit 0
10
fi
11
12
if ! git diff-index --quiet HEAD --; then
13
- echo "Commit and push lockfile"
14
- git status
15
- ls -lah
16
17
- # git checkout $TRAVIS_PULL_REQUEST_BRANCH
18
git config --global user.email "$GITHUB_EMAIL"
19
git config --global user.name "Travis CI"
20
git config --global push.default simple
21
22
git add package-lock.json
23
git commit -m "chore(*): update lockfile"
24
LAST_COMMIT=`git rev-parse HEAD`
+ git remote
25
git push origin $LAST_COMMIT:$TRAVIS_PULL_REQUEST_BRANCH
26
0 commit comments