Skip to content

AdaptiveCards breaks notifications #95

Open
@uridium

Description

@uridium

On September 6 custom MS Teams notifications worked beyond reproach, but since September 7 they don't look like as I want them to.

A correct, custom notification:
image

A broken notification (which looks like a default one):
image

Here is the code of a GHA step:

      - name: Send notification to MS Teams
        if: failure()
        uses: skitionek/notify-microsoft-teams@master
        with:
          webhook_url: ${{ secrets.GHA_DRIFT_DETECTION_MSTEAMS_WEBHOOK }}
          needs: ${{ toJson(needs) }}
          job: ${{ toJson(job) }}
          steps: ${{ toJson(steps) }}
          overwrite: >
            {
              "title": "The current state of infrastructure is not in sync with:  ${{ github.repository }}",
              "sections": [
                {
                  "activityTitle": "GitHub Issue has been created.",
                  "facts": [
                    {
                      "name": "Issue:",
                      "value": "${{ github.server_url }}/${{ github.repository }}/issues/${{ steps.gh-issue-open.outputs.issue-number }}"
                    },
                    {
                      "name": "Repository:",
                      "value": "${{ github.server_url }}/${{ github.repository }}"
                    },
                    {
                      "name": "Workflow:",
                      "value": "${{ github.workflow }}"
                    }
                  ]
                },
                {
                  "activityTitle": "",
                  "activityImage": ""
                }
              ],
              "potentialAction": [
                {
                  "@type": "OpenUri",
                  "name": "See Workflow Run",
                  "targets": [
                    {
                      "os": "default",
                      "uri": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
                    }
                  ]
                }
              ]
            }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions