File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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) }}
Original file line number Diff line number Diff line change 1+ fix: only notify on failure and fill with data
You can’t perform that action at this time.
0 commit comments