how to escape commit messages before they are sent to slack?
- name: Escape commit message run: | echo "SAFE_COMMIT_MSG=$(echo ${SAFE_COMMIT_MSG:1:-1} | tr -d '\n')" >> $GITHUB_ENV env: SAFE_COMMIT_MSG: ${{ toJSON(github.event.head_commit.message) }} - name: Send success notification if: success() uses: ./.github/actions/slack with: message: '🎉 Code successfully merged! Commit: ${{ env.SAFE_COMMIT_MSG }}' env: SLACK_APP_TOKEN: ${{ secrets.SLACK_APP_TOKEN }} SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}