mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-04 04:12:55 +00:00
* ci: update helm-charts and homebrew-greptime pull request reviewer Signed-off-by: liyang <daviderli614@gmail.com> * add reviewer Signed-off-by: liyang <daviderli614@gmail.com> --------- Signed-off-by: liyang <daviderli614@gmail.com>
50 lines
1.3 KiB
Bash
Executable File
50 lines
1.3 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
VERSION=${VERSION}
|
|
GITHUB_TOKEN=${GITHUB_TOKEN}
|
|
|
|
update_helm_charts_version() {
|
|
# Configure Git configs.
|
|
git config --global user.email update-helm-charts-version@greptime.com
|
|
git config --global user.name update-helm-charts-version
|
|
|
|
# Clone helm-charts repository.
|
|
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/GreptimeTeam/helm-charts.git"
|
|
cd helm-charts
|
|
|
|
# Set default remote for gh CLI
|
|
gh repo set-default GreptimeTeam/helm-charts
|
|
|
|
# Checkout a new branch.
|
|
BRANCH_NAME="chore/greptimedb-${VERSION}"
|
|
git checkout -b $BRANCH_NAME
|
|
|
|
# Update version.
|
|
make update-version CHART=greptimedb-cluster VERSION=${VERSION}
|
|
make update-version CHART=greptimedb-standalone VERSION=${VERSION}
|
|
|
|
# Update docs.
|
|
make docs
|
|
|
|
# Commit the changes.
|
|
git add .
|
|
git commit -s -m "chore: Update GreptimeDB version to ${VERSION}"
|
|
git push origin $BRANCH_NAME
|
|
|
|
# Create a Pull Request.
|
|
gh pr create \
|
|
--title "chore: Update GreptimeDB version to ${VERSION}" \
|
|
--body "This PR updates the GreptimeDB version." \
|
|
--base main \
|
|
--head $BRANCH_NAME \
|
|
--reviewer sunng87 \
|
|
--reviewer daviderli614 \
|
|
--reviewer killme2008 \
|
|
--reviewer evenyag \
|
|
--reviewer fengjiachun
|
|
}
|
|
|
|
update_helm_charts_version
|