From d640dec875020393a75017aa53791454ebbdba3c Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Fri, 14 Jul 2023 13:21:09 +0800 Subject: [PATCH] test --- .github/workflows/connect-test.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/connect-test.yml b/.github/workflows/connect-test.yml index 4f88dc6..ab495e8 100644 --- a/.github/workflows/connect-test.yml +++ b/.github/workflows/connect-test.yml @@ -53,9 +53,10 @@ jobs: - name: Create cluster run: | ticloud cluster create -p ${{ env.PROJECT_ID }} --cluster-name ${{ matrix.region }} --cloud-provider AWS -r ${{ matrix.region }} --root-password ${{ secrets.TIDB_CLOUD_PASSWORD }} --cluster-type SERVERLESS > ${{ matrix.region }} - echo "CLUSTER_ID=`cat ${{ matrix.region }} | sed 's/[^0-9]//g'`" >> $GITHUB_ENV + CLUSTER_ID=`cat ${{ matrix.region }} | sed 's/[^0-9]//g'` + echo "CLUSTER_ID=$CLUSTER_ID" >> $GITHUB_ENV echo ${{ env.CLUSTER_ID }} - ticloud cluster get -p ${{ env.PROJECT_ID }} -c ${{ env.CLUSTER_ID }} > ${{ matrix.region }} + ticloud cluster get -p ${{ env.PROJECT_ID }} -c $CLUSTER_ID > ${{ matrix.region }} cat ${{ matrix.region }} echo "CLUSTER_USER=(jq '.status.connection_strings.default_user' ${{ matrix.region }})" >> $GITHUB_ENV echo "CLUSTER_HOST=(jq '.status.connection_strings.standard.host' ${{ matrix.region }})" >> $GITHUB_ENV