Skip to content

Commit 9f8de66

Browse files
committed
[ci] Add Job Summary
1 parent e5da5d7 commit 9f8de66

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/publish-snapshot.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@ jobs:
4848
exit 1
4949
fi
5050
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
51+
- name: Add Job Summary
52+
env:
53+
WORKFLOW_RUN_DISPLAY_TITLE: ${{ github.event.workflow_run.display_title }}
54+
WORKFLOW_RUN_NAME: ${{ github.event.workflow_run.name }}
55+
WORKFLOW_RUN_NUMBER: ${{ github.event.workflow_run.run_number }}
56+
WORKFLOW_RUN_HTML_URL: ${{ github.event.workflow_run.html_url }}
57+
VERSION: ${{ steps.version.outputs.VERSION }}
58+
run: |
59+
echo "### Run Info" >> "${GITHUB_STEP_SUMMARY}"
60+
echo "Building Version: ${VERSION}" >> "${GITHUB_STEP_SUMMARY}"
61+
echo "" >> "${GITHUB_STEP_SUMMARY}"
62+
echo "Called by [${WORKFLOW_RUN_DISPLAY_TITLE} (${WORKFLOW_RUN_NAME} #${WORKFLOW_RUN_NUMBER})](${WORKFLOW_RUN_HTML_URL})" >> "${GITHUB_STEP_SUMMARY}"
63+
echo "" >> "${GITHUB_STEP_SUMMARY}"
5164
5265
deploy-to-maven-central:
5366
needs: check-version

0 commit comments

Comments
 (0)