Skip to content

Commit

Permalink
ci(workflows): fixed generate theme readme
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Nov 12, 2023
1 parent 1450cf8 commit 12244c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/generate-theme-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ jobs:
script: ./scripts/push-theme-readme.sh
env:
CI: true
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
GH_REPO: ${{ secrets.GH_REPO }}
6 changes: 5 additions & 1 deletion scripts/push-theme-readme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
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 push -f
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

0 comments on commit 12244c0

Please sign in to comment.