Skip to content

Commit b214748

Browse files
committed
use github env variables to store output
1 parent d42155c commit b214748

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/check_extension_build_status.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,9 @@ jobs:
2424
- name: Run Python script to calculate errors
2525
run: |
2626
python .github/get_build_status.py
27+
echo "has_errors=$has_errors" >> $GITHUB_ENV
2728
id: error_output
2829

29-
- name: Set the exit code and send notifications
30-
run: |
31-
has_errors="${{ steps.error_output.outputs.has_errors }}"
32-
if [[ $has_errors == "true" ]]; then
33-
echo "Build Failed"
34-
# Add your notification steps here
35-
else
36-
echo "Build Successful"
37-
fi
38-
3930
- name: Set the exit code
40-
run: exit ${{ steps.error_output.outputs.has_errors }}
31+
if: env.has_errors
32+
run: exit 1

0 commit comments

Comments
 (0)