Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Jul 14, 2023
1 parent d640dec commit 1c3e6c6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/connect-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 1c3e6c6

Please sign in to comment.