Skip to content

Commit

Permalink
use set +e
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyuhang0 committed Jul 20, 2023
1 parent 2728cd7 commit 98515b0
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/compatibility-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ jobs:
run: |
# delete cluster if exists
set +e
result=`ticloud cluster list 1372813089206721319 -o json`
ticloud cluster list 1372813089206721319 -o json > cluster
exitcode="$?"
if [[ "$exitcode" != "0" ]]; then
echo $result
cat cluster
exit "$exitcode"
fi
echo $result > cluster
total=$(jq '.total' cluster);
for i in $(seq 1 $total);
do
Expand All @@ -52,14 +51,13 @@ jobs:
fi
# get connection info
result=`ticloud cluster list 1372813089206721319 -o json`
ticloud cluster list 1372813089206721319 -o json > cluster
exitcode="$?"
if [[ "$exitcode" != "0" ]]; then
echo $result
cat cluster
exit "$exitcode"
fi
echo $result > cluster
cat cluster
echo "TIDB_CLOUD_USER=$(jq '.items[0].status.connection_strings.default_user' cluster)" >> $GITHUB_ENV
echo "TIDB_CLOUD_HOST=$(jq '.items[0].status.connection_strings.standard.host' cluster)" >> $GITHUB_ENV
Expand Down

0 comments on commit 98515b0

Please sign in to comment.