diff --git a/.github/workflows/promote.yaml b/.github/workflows/promote.yaml index 706f7d6..918ec15 100644 --- a/.github/workflows/promote.yaml +++ b/.github/workflows/promote.yaml @@ -42,20 +42,22 @@ jobs: if: success() run: | sha1=$(git rev-parse --short HEAD) - echo "# ⏩ Accepted changes from `develop` into `master`" >> "${GITHUB_STEP_SUMMARY}" - echo "" >> "${GITHUB_STEP_SUMMARY}" - echo "${sha1} is the new HEAD of `master`" >> "${GITHUB_STEP_SUMMARY}" - echo "" >> "${GITHUB_STEP_SUMMARY}" - echo "## Summary" >> "${GITHUB_STEP_SUMMARY}" - echo "" >> "${GITHUB_STEP_SUMMARY}" - echo "Below are commits being promoted" >> "${GITHUB_STEP_SUMMARY}" - echo "" >> "${GITHUB_STEP_SUMMARY}" + echo '# ⏩ Accepted changes from `develop` into `master`' >> "${GITHUB_STEP_SUMMARY}" + echo '' >> "${GITHUB_STEP_SUMMARY}" + echo '${sha1} is the new HEAD of `master`' >> "${GITHUB_STEP_SUMMARY}" + echo '' >> "${GITHUB_STEP_SUMMARY}" + echo '## Summary' >> "${GITHUB_STEP_SUMMARY}" + echo '' >> "${GITHUB_STEP_SUMMARY}" + echo 'Below are commits being promoted' >> "${GITHUB_STEP_SUMMARY}" + echo '' >> "${GITHUB_STEP_SUMMARY}" old_sha1=${{steps.update-branch.outputs.old_sha1}} new_sha1=${{steps.update-branch.outputs.new_sha1}} + url_base=https://github.com/${{github.repository}}/commit/ echo "| SHA1 | Message |" >> "${GITHUB_STEP_SUMMARY}" + echo "|------|---------|" >> "${GITHUB_STEP_SUMMARY}" git log \ - --pretty="format:| %h | %s |" \ + --pretty='format:| [`%h`](https://github.com/${{github.repository}}/commit/%h) | %s |' \ --no-show-signature \ ${old_sha1}..${new_sha1} >> "${GITHUB_STEP_SUMMARY}" @@ -63,6 +65,6 @@ jobs: if: failure() run: | sha1=$(git rev-parse --short HEAD) - echo "# 🛑 Rejected changes from `develop` into `master`" >> "${GITHUB_STEP_SUMMARY}" - echo "" >> "${GITHUB_STEP_SUMMARY}" - echo "A failure occurred, and `master` was not able to be updated" >> "${GITHUB_STEP_SUMMARY}" + echo '# 🛑 Rejected changes from `develop` into `master`' >> "${GITHUB_STEP_SUMMARY}" + echo '' >> "${GITHUB_STEP_SUMMARY}" + echo 'A failure occurred, and `master` was not able to be updated' >> "${GITHUB_STEP_SUMMARY}"