Skip to content

Commit

Permalink
init v7.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt committed Feb 27, 2024
1 parent 7d9c740 commit 6fbde25
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions sync_mult_prs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,20 @@ cd "$SCRIPT_DIR"

# Define the PRs to sync.
# The PRs will be synced in the order of the following statements.
./sync_pr.sh preview/pingcap/docs/"$DOCS_PR"
./sync_pr.sh preview/pingcap/docs-cn/"$DOCS_CN_PR"
./sync_pr.sh preview-cloud/pingcap/docs/"$CLOUD_DOCS_PR"
./sync_pr.sh preview-operator/pingcap/docs-tidb-operator/"$OPERATOR_DOCS_PR"
./sync_pr.sh preview/pingcap/docs/16595
./sync_pr.sh preview/pingcap/docs-cn/16660

# Synchronize the content from master to release-x.y directories.
rsync -av markdown-pages/zh/tidb/master/ markdown-pages/zh/tidb/"$RELEASE_DIR"/
rsync -av markdown-pages/en/tidb/master/ markdown-pages/en/tidb/"$RELEASE_DIR"/
rsync -av markdown-pages/en/tidb-in-kubernetes/master/ markdown-pages/en/tidb-in-kubernetes/"$RELEASE_DIR"/
rsync -av markdown-pages/zh/tidb-in-kubernetes/master/ markdown-pages/zh/tidb-in-kubernetes/"$RELEASE_DIR"/
rsync -av markdown-pages/zh/tidb/master/ markdown-pages/zh/tidb/release-7.5/
rsync -av markdown-pages/en/tidb/master/ markdown-pages/en/tidb/release-7.5/

commit_changes() {
# Exit if TEST is set and not empty.
test -n "$TEST" && echo "Test mode, exiting..." && exit 0
# Handle untracked files.
git add .
# Commit changes, if any.
git commit -m "Update the {release-x.y} directory" || echo "No changes to commit"
git commit -m "Update the {release-7.5} directory" || echo "No changes to commit"
}

commit_changes

0 comments on commit 6fbde25

Please sign in to comment.