Skip to content

Commit

Permalink
add connect test
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Jul 14, 2023
1 parent adc8c8e commit eb51810
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/connect-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@ jobs:
# delete all serverless
ticloud cluster list 1372813089447741295 -o json > cluster
total=$(jq '.total' cluster);
for i in {1..$total}
for i in $(seq 1 $total); do echo $i; done
for i in {1..$total};
do
number=$i
echo $number
number=$number-1
id=`echo $(jq ".items[$number].id" cluster) | sed 's/"//g'`
echo $i
id=`echo $(jq ".items[i-1].id" cluster) | sed 's/"//g'`
ticloud cluster delete -p 1372813089447741295 -c $id --force;
done
Expand Down

0 comments on commit eb51810

Please sign in to comment.