simbo / msteams-message-card-action

A simple and lightning-fast GitHub action to send notifications as message cards to an MS Teams webhook.
https://github.com/marketplace/actions/ms-teams-message-card
MIT License
10 stars 3 forks source link

Unicode characters with "New" Microsoft Teams in title #2

Open futureviperowner opened 11 months ago

futureviperowner commented 11 months ago

I recently updated to the new Microsoft Teams and noticed that Unicode characters in my Teams notifications are no longer displaying properly. I've only tested them in the notification title, not the body.

This could be a Teams issue, but I figured it could also be caused by changes to the Teams API that the action might need to adopt.

      - name: Teams Notification
        uses: simbo/msteams-message-card-action@v1
        with:
          webhook: ${{ secrets.TEAMS_WEBHOOK_URL_DEPLOYMENT_NOTIFICATIONS }}
          color: 28a745
          title: 🎉 Deployment Successful!
          message: |
            Service: <strong>${{ fromJSON(github.event.inputs.json).resourceName }}:${{ fromJSON(github.event.inputs.json).resourceVersion }}</strong><br />
            Environment: <strong>${{ fromJSON(github.event.inputs.json).environment }} (${{ fromJSON(github.event.inputs.json).location }})</strong><br />
            Deployed Release: <strong>${{ env.DEPLOYMENT_TRIGGER_SUMMARY }}</strong><br />
            Developers: <strong>${{ env.DEPLOYMENT_PR_AUTHOR }}</strong><br />

image