mirror of
https://github.com/anuraghazra/github-readme-stats.git
synced 2024-11-21 01:16:23 +08:00
16 lines
573 B
Bash
Executable File
16 lines
573 B
Bash
Executable File
#!/bin/bash
|
|
set -x
|
|
set -e
|
|
|
|
export BRANCH_NAME=updated-theme-readme
|
|
git --version
|
|
git config --global user.email "no-reply@githubreadmestats.com"
|
|
git config --global user.name "GitHub Readme Stats Bot"
|
|
git config --global --add safe.directory ${GITHUB_WORKSPACE}
|
|
git branch -d $BRANCH_NAME || true
|
|
git checkout -b $BRANCH_NAME
|
|
git add --all
|
|
git commit --no-verify --message "docs(theme): auto update theme readme"
|
|
git remote add origin-$BRANCH_NAME https://${PERSONAL_TOKEN}@github.com/${GH_REPO}.git
|
|
git push --force --quiet --set-upstream origin-$BRANCH_NAME $BRANCH_NAME
|