This is an automated email from the ASF dual-hosted git repository. xiangfu pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/incubator-pinot-site.git
commit e7f210a93f8b1ffa8cf5d10fa8f280720939cec9 Author: Xiang Fu <[email protected]> AuthorDate: Thu Apr 29 14:27:40 2021 -0700 Update commit message --- .github/workflows/scripts/publish-site.sh | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/scripts/publish-site.sh b/.github/workflows/scripts/publish-site.sh index 827dcd4..f79b81a 100755 --- a/.github/workflows/scripts/publish-site.sh +++ b/.github/workflows/scripts/publish-site.sh @@ -24,23 +24,24 @@ ROOT_DIR=$(git rev-parse --show-toplevel) SITE_DIR=${ROOT_DIR}/content git branch -# ORIGIN_REPO=$(git remote show origin | grep 'Push URL' | awk -F// '{print $NF}') +# Build website ORIGIN_REPO="https://github.com/apache/incubator-pinot-site" echo "ORIGIN_REPO: $ORIGIN_REPO" DEV_TMP=/tmp/pinot-site-dev -( - rm -rf $DEV_TMP - mkdir $DEV_TMP - cd $DEV_TMP - - git clone "$ORIGIN_REPO" . - git checkout dev - cd ${DEV_TMP}/website - npm install yarn - yarn install - yarn run build -) +rm -rf $DEV_TMP +mkdir $DEV_TMP +cd $DEV_TMP + +git clone "$ORIGIN_REPO" . +git checkout dev +COMMIT_ID=`git rev-parse HEAD` +GIT_MSG=`git rev-list --pretty --max-count=2 ${COMMIT_ID}` +cd ${DEV_TMP}/website +npm install yarn +yarn install +yarn run build + cd ${ROOT_DIR} git status @@ -55,8 +56,6 @@ git status git config user.name "Pinot Site Updater" git config user.email "[email protected]" -COMMIT_ID=`git rev-parse HEAD` -GIT_MSG=`git rev-list --pretty --max-count=1 ${COMMIT_ID}` git commit -m "Update Pinot Site from dev branch ${COMMIT_ID}" -m "$GIT_MSG" git log -2 git push origin asf-site --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
