From 3e27d92d497c06929788fe52a385bada0e84335c Mon Sep 17 00:00:00 2001 From: Markus Hoffrogge Date: Thu, 19 Sep 2024 11:44:51 +0200 Subject: [PATCH] Add log output to GHA summary - closes #12 --- .github/workflows/maven-cd.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/maven-cd.yml b/.github/workflows/maven-cd.yml index 2b3e0e8..d509542 100644 --- a/.github/workflows/maven-cd.yml +++ b/.github/workflows/maven-cd.yml @@ -51,14 +51,17 @@ jobs: - name: Log should_release details id: log-should_release-details run: | - echo "================================" - echo "Release job filter details:" - echo " VALIDATE_ONLY: ${VALIDATE_ONLY}" - echo " CI_STATUS: ${CI_STATUS}" - echo " INTERESTING_CATEGORY: ${INTERESTING_CATEGORY}" - echo "--------------------------------" - echo "=> SHOULD_RELEASE: ${SHOULD_RELEASE}" - echo "================================" + echo "## Job Filter Summary" >> "${GITHUB_STEP_SUMMARY}" + echo "\`\`\`" >> "${GITHUB_STEP_SUMMARY}" + echo "================================" | tee -a "${GITHUB_STEP_SUMMARY}" + echo "Release job filter details:" | tee -a "${GITHUB_STEP_SUMMARY}" + echo " VALIDATE_ONLY: ${VALIDATE_ONLY}" | tee -a "${GITHUB_STEP_SUMMARY}" + echo " CI_STATUS: ${CI_STATUS}" | tee -a "${GITHUB_STEP_SUMMARY}" + echo " INTERESTING_CATEGORY: ${INTERESTING_CATEGORY}" | tee -a "${GITHUB_STEP_SUMMARY}" + echo "--------------------------------" | tee -a "${GITHUB_STEP_SUMMARY}" + echo "=> SHOULD_RELEASE: ${SHOULD_RELEASE}" | tee -a "${GITHUB_STEP_SUMMARY}" + echo "================================" | tee -a "${GITHUB_STEP_SUMMARY}" + echo "\`\`\`" >> "${GITHUB_STEP_SUMMARY}" env: VALIDATE_ONLY: ${{ inputs.validate_only }} CI_STATUS: ${{ steps.verify-ci-status.outputs.result }}