Skip to content

Commit 9340631

Browse files
committed
feat: align for both Linux and Windows
1 parent 38a409c commit 9340631

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

.github/workflows/nightly_docker_test.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,27 @@ jobs:
108108
if: failure()
109109
with:
110110
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
111-
needs: ${{ toJson(needs) }}
112-
job: ${{ toJson(job) }}
113-
steps: ${{ toJson(steps) }}
111+
# Message to send to Teams as a webhook notification in JSON Payload format
112+
raw: >-
113+
{
114+
"@type": "MessageCard",
115+
"@context": "http://schema.org/extensions",
116+
"summary": "Nightly Tests for Windows failing",
117+
"themeColor": "0078D7",
118+
"title": "PyAnsys Geometry Nightly Tests - Windows failing",
119+
"sections": [
120+
{
121+
"activityTitle": "Windows nightly tests are failing",
122+
"activitySubtitle": "Check the run for more details: https://github.com/ansys/pyansys-geometry/actions/runs/${{ github.run_id }}",
123+
"facts": [
124+
{
125+
"name": "Status",
126+
"value": "Failed"
127+
}
128+
]
129+
}
130+
]
131+
}
114132
115133
# =================================================================================================
116134
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUNNING ON SELF-HOSTED RUNNER ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -151,7 +169,7 @@ jobs:
151169
152170
- name: Microsoft Teams Notification
153171
uses: skitionek/notify-microsoft-teams@master
154-
if: always()
172+
if: failure()
155173
with:
156174
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
157175
# Message to send to Teams as a webhook notification in JSON Payload format

0 commit comments

Comments
 (0)