Skip to content

Commit 03f05c2

Browse files
committed
using error sum as trigger directly
1 parent dfaed08 commit 03f05c2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/get_build_status.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import requests
22
import pandas as pd
3-
3+
import sys
44
pd.set_option("display.max_columns", None)
55
pd.set_option("display.max_rows", None)
66
slicerExtensionName ='IDCBrowser'
@@ -44,8 +44,8 @@
4444
error_sum = df['ConfigureErrors'].sum()+ df['CompilationErrors'].sum()+df['TestFail'].sum()
4545
has_errors = error_sum > 0
4646
if has_errors:
47-
print("Build Failed")
47+
sys.exit(1)
4848
else:
49-
print("Build Successful")
49+
sys.exit(0)
5050
else:
5151
print(f"Failed to retrieve data. Status code: {response.status_code}")

.github/workflows/check_extension_build_status.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
- name: Run Python script to calculate errors
2525
run: |
2626
python .github/get_build_status.py
27-
exit $error_sum
27+

0 commit comments

Comments
 (0)