Skip to content

Commit 2a45fdd

Browse files
fix: only notify on failure and fill with data (#1238)
Co-authored-by: pyansys-ci-bot <[email protected]>
1 parent 8d94a57 commit 2a45fdd

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/nightly_docker_test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,12 @@ jobs:
101101

102102
- name: Microsoft Teams Notification
103103
uses: skitionek/notify-microsoft-teams@master
104-
if: always()
104+
if: failure()
105105
with:
106106
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
107+
needs: ${{ toJson(needs) }}
108+
job: ${{ toJson(job) }}
109+
steps: ${{ toJson(steps) }}
107110

108111
# =================================================================================================
109112
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RUNNING ON SELF-HOSTED RUNNER ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -144,6 +147,9 @@ jobs:
144147
145148
- name: Microsoft Teams Notification
146149
uses: skitionek/notify-microsoft-teams@master
147-
if: always()
150+
if: failure()
148151
with:
149152
webhook_url: ${{ secrets.MSTEAMS_WEBHOOK }}
153+
needs: ${{ toJson(needs) }}
154+
job: ${{ toJson(job) }}
155+
steps: ${{ toJson(steps) }}

doc/changelog.d/1238.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: only notify on failure and fill with data

0 commit comments

Comments
 (0)