diff --git a/packages/c/community/check-sig-pr.sh b/packages/c/community/check-sig-pr.sh index a378c9b943dabd8ba43884b0c77688f7a8181245..6f4e054cabe786827cf82df09a99333bbd8aec02 100644 --- a/packages/c/community/check-sig-pr.sh +++ b/packages/c/community/check-sig-pr.sh @@ -1,3 +1,11 @@ #!/bin/bash -curl -X GET -k --header 'X-Gitee-Token: anolis-bot' https://121.43.154.63:443/api/webhook/sig/check?pr_url=$PKG_CI_PR_URL --retry 3 --retry-delay 30 \ No newline at end of file +resp=$(curl -X GET -k --header 'X-Gitee-Token: anolis-bot' https://121.43.154.63:443/api/webhook/sig/check?pr_url=$PKG_CI_PR_URL --retry 3 --retry-delay 30) +#resp='{"code":"00000","message":"SUCCESS","data":null}' +if [[ $resp =~ ^\{\"code\":\"00000\".* ]]; then + echo 'ok' + exit 0 +else + echo 'fail' + exit 1 +fi \ No newline at end of file