Open
Description
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:
A broken notification (which looks like a default one):
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
Labels
No labels