diff --git a/.github/workflows/connect-test.yml b/.github/workflows/connect-test.yml index ab495e8..dfe466f 100644 --- a/.github/workflows/connect-test.yml +++ b/.github/workflows/connect-test.yml @@ -54,12 +54,11 @@ jobs: 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 }} 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 $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 + echo "CLUSTER_ID=`echo $(jq '.id' ${{ matrix.region }}) | sed 's/"//g'`" >> $GITHUB_ENV + 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 echo ${{ env.CLUSTER_USER }} echo ${{ env.CLUSTER_HOST }}