-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update script for push readme theme
- Loading branch information
Showing
1 changed file
with
2 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |