File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 65
65
message="<https://github.com/${{ inputs.repository }}/commit/${{ github.sha }}|$commit_message>"
66
66
fi
67
67
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')
68
70
echo "sanitized_message=$sanitized_message" >> $GITHUB_OUTPUT
69
-
71
+ echo "message=$message" >> $GITHUB_OUTPUT
70
72
author=${{ github.event.pusher.name }} # context from `push` trigger
71
73
author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger
72
74
echo "author=$author" >> $GITHUB_OUTPUT
@@ -100,4 +102,4 @@ runs:
100
102
- type: "section"
101
103
text:
102
104
type: "mrkdwn"
103
- text: ' *Commit Message*\n${{ steps.fields.outputs.sanitized_message }}'
105
+ text: toJSON( *Commit Message*\n${{ steps.fields.outputs.sanitized_message }})
You can’t perform that action at this time.
0 commit comments