2020-07-26 16:41:30 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export BRANCH_NAME=updated-theme-readme
|
|
|
|
git --version
|
|
|
|
git config --global user.email "no-reply@githubreadmestats.com"
|
2022-10-26 22:41:59 +08:00
|
|
|
git config --global user.name "GitHub Readme Stats Bot"
|
2020-07-26 16:41:30 +08:00
|
|
|
git branch -d $BRANCH_NAME || true
|
|
|
|
git checkout -b $BRANCH_NAME
|
|
|
|
git add --all
|
|
|
|
git commit --message "docs(theme): Auto update theme readme" || exit 0
|
|
|
|
git remote add origin-$BRANCH_NAME https://${PERSONAL_TOKEN}@github.com/${GH_REPO}.git
|
2022-09-24 16:20:54 +08:00
|
|
|
git push --force --quiet --set-upstream origin-$BRANCH_NAME $BRANCH_NAME
|