From 8861e71382fb2e2cb374cbb2d327d3980a2240ba Mon Sep 17 00:00:00 2001 From: kristianmills Date: Thu, 12 Dec 2024 11:46:08 -0800 Subject: [PATCH] test --- action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index fc5b1dc..f501a39 100644 --- a/action.yml +++ b/action.yml @@ -65,8 +65,10 @@ runs: message="" fi sanitized_message=$(echo "$message" | sed "s/'/\\\'/g") + sanitized_message=$(echo "$sanitized_message" | sed 's/"/\\\"/g') + sanitized_message=$(echo "$sanitized_message" | sed 's/`/\\\`/g') echo "sanitized_message=$sanitized_message" >> $GITHUB_OUTPUT - + echo "message=$message" >> $GITHUB_OUTPUT author=${{ github.event.pusher.name }} # context from `push` trigger author=${author:-${{ github.event.sender.login }}} # context from `workflow_dispatch` trigger echo "author=$author" >> $GITHUB_OUTPUT @@ -100,4 +102,4 @@ runs: - type: "section" text: type: "mrkdwn" - text: '*Commit Message*\n${{ steps.fields.outputs.sanitized_message }}' + text: ${{ "*Commit Message*\n" + toJSON(steps.fields.outputs.sanitized_message) }}