Skip to content

Commit

Permalink
gh-actions/github/env/summary: Improve links/output (#1031)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax authored Nov 14, 2023
1 parent 8009930 commit 5524588
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gh-actions/github/env/summary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ runs:
${{ inputs.icon }}
Request (${{ inputs.link && format('[{0}]({1})', steps.title.outputs.title, inputs.link) || steps.title.outputs.title }})
BODY: |
<img src="${{ github.event.sender.avatar_url }}" alt="${{ github.actor }}" width="18" height="18"> @${{ github.actor }} [`${{ steps.sha-short.outputs.string }}`](https://github.com/${{ github.repository }}/commit/${{ steps.sha-short.outputs.string }}) ${{ steps.pr.outputs.link }}
<img src="${{ github.event.sender.avatar_url }}" alt="${{ github.actor }}" width="18" height="18"> @${{ github.actor }} [`${{ steps.sha-short.outputs.string }}`](https://github.com/${{ github.repository }}/commit/${{ inputs.sha }}) ${{ steps.pr.outputs.link }}
<details>
<summary><b>${{ fromJSON(steps.change.outputs.value).title }}</b></summary>
Expand All @@ -128,14 +128,14 @@ runs:
printf '%s\n' "${TABLE}" >> $GITHUB_OUTPUT
echo "nEOFn" >> $GITHUB_OUTPUT
shell: bash
id: raw-output
id: request-output
env:
REQUEST: ${{ steps.request.outputs.value }}
TABLE: ${{ steps.table.outputs.summary }}
- uses: envoyproxy/toolshed/gh-actions/str/[email protected]
id: output
with:
string: ${{ steps.raw-output.outputs.value }}
string: ${{ steps.request-output.outputs.value }}
indent: ${{ inputs.indent }}
- run: |
if [[ "${{ inputs.output-path }}" == "GITHUB_STEP_SUMMARY" ]]; then
Expand Down

0 comments on commit 5524588

Please sign in to comment.