Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
kristianmills committed Dec 13, 2024
1 parent cbcee0e commit f822db0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,10 @@ 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
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
Expand Down Expand Up @@ -100,4 +102,4 @@ runs:
- type: "section"
text:
type: "mrkdwn"
text: '*Commit Message*\n${{ steps.fields.outputs.sanitized_message }}'
text: toJSON(*Commit Message*\n${{ steps.fields.outputs.sanitized_message }})

0 comments on commit f822db0

Please sign in to comment.