cycjimmy / semantic-release-action

GitHub Action for Semantic Release
https://github.com/marketplace/actions/action-for-semantic-release
MIT License
550 stars 98 forks source link

Add job summary #210

Open benkeil opened 4 months ago

benkeil commented 4 months ago

It would nice if the plugin could create a job summary. Like that it's easier to see what the job has done, without digging into the logs.

https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary

chris3ware commented 2 months ago

You can add your own by using the outputs provided by the action:

- name: Summary with release
  if: ${{ steps.release.outputs.new_release_published == 'true' }}
  run: |
    echo "# :white_check_mark: New release published" >> $GITHUB_STEP_SUMMARY
    echo "" >> $GITHUB_STEP_SUMMARY
    echo "Release bumped from v${{ steps.release.outputs.last_release_version }} to v${{ steps.release.outputs.new_release_version }}" >> $GITHUB_STEP_SUMMARY
    echo "" >> $GITHUB_STEP_SUMMARY
    echo "## CHANGELOG" >> $GITHUB_STEP_SUMMARY
    echo ""
    echo "${{ steps.release.outputs.new_release_notes }}" >>$GITHUB_STEP_SUMMARY