Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: fail the ci if the status is not success (#9166)

ecmadao07336eac5878
diff --git a/backend/plugin/vcs/github/bytebase-sql-review.yml b/backend/plugin/vcs/github/bytebase-sql-review.yml
index 7533e3afbf..e0d697477f 100644
--- a/backend/plugin/vcs/github/bytebase-sql-review.yml
+++ b/backend/plugin/vcs/github/bytebase-sql-review.yml
@@ -39,4 +39,4 @@ jobs:
echo $message
done <<< "$(echo $content | jq -r '.[]')"
- if [ "$status" == "ERROR" ]; then exit 1; fi
+ if [ "$status" != "SUCCESS" ]; then exit 1; fi
diff --git a/backend/plugin/vcs/gitlab/bytebase-sql-review.yml b/backend/plugin/vcs/gitlab/bytebase-sql-review.yml
index 5a2ba00c4b..4fc3549ecc 100644
--- a/backend/plugin/vcs/gitlab/bytebase-sql-review.yml
+++ b/backend/plugin/vcs/gitlab/bytebase-sql-review.yml
@@ -19,7 +19,7 @@ bytebase-sql-review:
- msg=$(echo "$content" | jq -r '.[0]')
- echo $msg >> bytebase-sql-review.xml
- status=$(echo "$response" | jq -r '.status')
- - if [ "$status" == "ERROR" ]; then exit 1; fi
+ - if [ "$status" != "SUCCESS" ]; then exit 1; fi
artifacts:
when: always
reports: