Skip to content

Commit

Permalink
gh-actions/
Browse files Browse the repository at this point in the history
  • Loading branch information
phlax committed Nov 12, 2023
1 parent 9d681e3 commit 38f078f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gh-actions/github/env/summary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,12 @@ runs:
"@${{ steps.sha-short.outputs.string }}")
else
REF_SHA_LINK="[${{ steps.sha-short.outputs.string }}](https://github.com/${{ github.repository }}/commit/${{ inputs.sha }})"
PR_LINK="[${{ inputs.pr }}](https://github.com/${{ github.repository }}/pull/${{ inputs.pr }})/"
REF_TITLE=(
"${{ ! inputs.pr && 'postsubmit' || 'pr' }}/"
"${PR_LINK}"
"${{ ! inputs.pr && 'postsubmit' || 'pr' }}/")
if [[ -n "${{ inputs.pr }}" ]]; then
REF_TITLE+=("[${{ inputs.pr }}](https://github.com/${{ github.repository }}/pull/${{ inputs.pr }})/")
fi
REF_TITLE+=(
"${{ inputs.target-branch }}"
"@${REF_SHA_LINK}")
fi
Expand Down

0 comments on commit 38f078f

Please sign in to comment.