Skip to content

Commit

Permalink
🧪💅 Display action outputs in CI job summary
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Sep 20, 2024
1 parent f12d262 commit 6b0ca88
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/test-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,12 @@ jobs:

- name: 📝 Log all the action outputs
run: |
echo '${{ toJSON(steps.tests.outputs) }}'
echo '# 🤖 Action outputs as JSON:' >> "${GITHUB_STEP_SUMMARY}"
echo >> "${GITHUB_STEP_SUMMARY}"
echo '```json' >> "${GITHUB_STEP_SUMMARY}"
echo '${{ toJSON(steps.tests.outputs) }}' \
| tee -a "${GITHUB_STEP_SUMMARY}"
echo '```' >> "${GITHUB_STEP_SUMMARY}"
check: # This job does nothing and is only used for the branch protection
if: always()
Expand Down

0 comments on commit 6b0ca88

Please sign in to comment.