Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmills committed Dec 12, 2024
1 parent cbcee0e commit f5b42a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ runs:
message="<https://github.com/${{ inputs.repository }}/commit/${{ github.sha }}|$commit_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
author=${{ github.event.pusher.name }} # context from `push` trigger
Expand Down Expand Up @@ -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) }}'

0 comments on commit f5b42a3

Please sign in to comment.