File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 message="<https://github.com/${{ inputs.repository }}/commit/${{ github.sha }}|$commit_message>"
6666 fi
6767 sanitized_message=$(echo "$message" | sed "s/'/\\\'/g")
68+ sanitized_message=$(echo "$sanitized_message" | sed 's/"/\\\"/g')
69+ sanitized_message=$(echo "$sanitized_message" | sed 's/`/\\\`/g')
6870 echo "sanitized_message=$sanitized_message" >> $GITHUB_OUTPUT
69-
71+ echo "message=$message" >> $GITHUB_OUTPUT
7072 author=${{ github.event.pusher.name }} # context from `push` trigger
7173 author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger
7274 echo "author=$author" >> $GITHUB_OUTPUT
@@ -100,4 +102,4 @@ runs:
100102 - type: "section"
101103 text:
102104 type: "mrkdwn"
103- text: '*Commit Message*\n${{ steps.fields.outputs.sanitized_message }}'
105+ text: '*Commit Message*\n${{ toJSON( steps.fields.outputs.message) }}'
You can’t perform that action at this time.
0 commit comments