-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Travis CI
committed
Sep 16, 2019
1 parent
a3b36eb
commit adb1c90
Showing
2 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/sh | ||
|
||
setup_git() { | ||
git config --global user.email "travis@travis-ci.org" | ||
git config --global user.name "Travis CI" | ||
} | ||
|
||
commit_build_changed() { | ||
git checkout fix-travis-ci | ||
git add dist/* | ||
git commit -m "Travis build: $TRAVIS_BUILD_NUMBER" -m "[skip ci]" | ||
} | ||
|
||
push_commit() { | ||
git remote rm origin | ||
git remote add origin https://xifengzhu:${GH_TOKEN}@github.com/beansmile/beans-admin-plugin.git > /dev/null 2>&1 | ||
git push origin fix-travis-ci --quiet | ||
} | ||
|
||
setup_git | ||
commit_build_changed | ||
push_commit |