microsoft-teams-actions icon indicating copy to clipboard operation
microsoft-teams-actions copied to clipboard

Allow including Images in sections

Open META-DREAMER opened this issue 4 years ago • 2 comments

Whenever I try to pass images in the sections, it doesn't show up in the output. Example usage: https://stackoverflow.com/questions/56853198/teams-invoke-webrequest-sending-base64-string-png-to-teams/57034497#57034497

My yml file

      - name: Generate QR Code
        id: qrcode
        uses: hammadj/qr-code-generator@master
        with:
          content: exp://exp.host/@foo/bar?release-channel=pr-${{ github.event.number }}
      - name: Send Deploy Preview Notification To MS Teams
        uses: aliencube/[email protected]
        with:
          webhook_uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}
          title: "TESTING Deploy Preview For PR #${{ github.event.number }} (${{ github.event.pull_request.title }})"
          summary: "Deploy Preview For PR #${{ github.event.number }}"
          text: ${{ github.event.pull_request.body }}
          sections: '[{ "title": "QR Code", "images": [{ "image": "${{ steps.qrcode.output.data }}" }] }]'
          actions: '[{ "@type": "OpenUri", "name": "View PR", "targets": [{ "os": "default", "uri": "${{ github.event.pull_request.html_url }}" }] }, { "@type": "OpenUri", "name": "Preview App", "targets": [{ "os": "default", "uri": "https://expo.io/@danieloertli/unloan-app?release-channel=pr-${{ github.event.number }}" }] }]'

META-DREAMER avatar Jun 30 '20 05:06 META-DREAMER

@hammadj Thanks for your comment! Let me have a look.

justinyoo avatar Jul 03 '20 06:07 justinyoo

@justinyoo when you fixed it ?

dbaskakov avatar Apr 08 '21 08:04 dbaskakov