Unverified Commit 3f792071 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[BugFix] fix CI status (#3963)

parent 56614f32
......@@ -8,7 +8,7 @@ job_link = os.environ["BUILD_URL"]
response = requests.get('{}wfapi'.format(job_link)).json()
status = "✅ CI test succeeded"
for v in response['stages']:
if v['status'] not in ['SUCCESS', 'IN_PROGRESS']:
if v['status'] in ['FAILED', 'ABORTED']:
status = "❌ CI test failed in Stage [{}].".format(v['name'])
break
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment