Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GHA summary to maven-cd.yml runs #33

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/maven-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Comment on lines +55 to +56
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW here-docs would be a bit more legible.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jglick Yes, thought about that as well afterwards - will file another PR if I have few minutes.

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 }}
Expand Down