File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -112,11 +112,16 @@ runs:
112
112
link_threads : ${{ inputs.link_threads }}
113
113
test_threads : ${{ inputs.test_threads }}
114
114
115
- - name : Notify about fail build
116
- if : ${{ steps.build.outputs.success != 'true' }}
115
+ - name : Notify about failed build
116
+ if : ${{ steps.build.outputs.success != 'true' && inputs.run_tests == 'true' && inputs.run_tests_if_build_fails == 'false' }}
117
117
shell : bash
118
118
run : |
119
119
echo 'Build failed. See the [build log](${{ steps.build.outputs.log_url }}).' >> $GITHUB_STEP_SUMMARY
120
+
121
+ if [[ "$GITHUB_EVENT_NAME" =~ ^pull_request ]]; then
122
+ echo "Tests run skipped." | .github/scripts/tests/comment-pr.py --fail
123
+ fi
124
+
120
125
exit 1
121
126
122
127
- name : comment-if-cancel
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ runs:
138
138
shell : bash
139
139
run : |
140
140
if [ "${{ steps.build.outputs.status }}" == "failed" ]; then
141
- echo "Build failed. see the [build log ]($LOG_URL). Skipping tests run ." | .github/scripts/tests/comment-pr.py --fail
141
+ echo "Build failed. see the [build logs ]($LOG_URL)." | .github/scripts/tests/comment-pr.py --fail
142
142
else
143
143
echo "Build successful." | .github/scripts/tests/comment-pr.py --ok
144
144
fi
You can’t perform that action at this time.
0 commit comments