diff --git a/.github/workflows/regression-report.yml b/.github/workflows/regression-report.yml index af5fb27abe2..bd312c8076c 100644 --- a/.github/workflows/regression-report.yml +++ b/.github/workflows/regression-report.yml @@ -561,7 +561,8 @@ jobs: download_configs, make_report ] if: always() - && (needs.make_report.outputs.message != '' + && (needs.make_report.result == 'failure' + || needs.make_report.outputs.message != '' || needs.download_configs.result == 'failure' || needs.handle_generated_config_bundle.result == 'failure') steps: @@ -572,6 +573,7 @@ jobs: env: MSG: ${{ needs.make_report.outputs.message }} DOWNLOAD_RESULT: ${{ needs.download_configs.result }} + MAKE_REPORT_RESULT: ${{ needs.make_report.result }} GENERATED_CONFIG_RESULT: ${{ needs.handle_generated_config_bundle.result }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -595,6 +597,11 @@ jobs: echo "
Usage: 'GitHub, generate report by config from '" echo "
Link: $JOBS_LINK" } > .ci-temp/message + elif [ "$MAKE_REPORT_RESULT" == "failure" ]; then + { + echo "Report generation failed. Please check the logs for more details." + echo "
Link: $JOBS_LINK" + } > .ci-temp/message elif [ -z "$MSG" ]; then API_LINK="https://api.github.com/repos/checkstyle/checkstyle/actions/runs/${{github.run_id}}/jobs" curl --fail-with-body -X GET "${API_LINK}" \