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 40c4e0c commit d640dec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/connect-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d640dec

Please sign in to comment.