Skip to content

Commit

Permalink
fix: update script for push readme theme
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Nov 12, 2023
1 parent 12244c0 commit aef71d8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/push-theme-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@
set -x
set -e

export BRANCH_NAME=updated-theme-readme
git --version
git config --global user.email "[email protected]"
git config --global user.name "Rangga Fajar Oktariansyah"
git config --global --add safe.directory ${GITHUB_WORKSPACE}
git branch -d $BRANCH_NAME || true
git checkout -b $BRANCH_NAME
git add --all
git commit --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
git remote add master https://${PERSONAL_TOKEN}@github.com/${GH_REPO}.git
git push -f

0 comments on commit aef71d8

Please sign in to comment.