File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,30 @@ jobs:
257257 env :
258258 SLACK_BOT_TOKEN : ${{ secrets.SON_OF_JEEVES_TOKEN }}
259259
260+ - name : Send Discord notification for failure
261+ if : failure() && steps.check_pr.outputs.is_pr == 'false'
262+ uses : sarisia/actions-status-discord@65843b6a7d18626c252a055e247ccad1f41b4004 # v1.15.1
263+ with :
264+ webhook : ${{ secrets.SON_OF_JEEVES_DISCORD_WEBHOOK }}
265+ status : ${{ job.status }}
266+ title : " e2e-nvidia-l40s-x4"
267+ description : |
268+ Job in **${{ github.repository }}** running on branch `${{ steps.check_pr.outputs.pr_or_branch }}` completed **with failures** ❌
269+ Click [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) to view details.
270+ color : 0xCB2431 # Red color for failure
271+
272+ - name : Send Discord notification for success
273+ if : success() && steps.check_pr.outputs.is_pr == 'false'
274+ uses : sarisia/actions-status-discord@65843b6a7d18626c252a055e247ccad1f41b4004 # v1.15.1
275+ with :
276+ webhook : ${{ secrets.SON_OF_JEEVES_DISCORD_WEBHOOK }}
277+ status : ${{ job.status }}
278+ title : " e2e-nvidia-l40s-x4"
279+ description : |
280+ Job in **${{ github.repository }}** running on branch `${{ steps.check_pr.outputs.pr_or_branch }}` completed **successfully** ✅
281+ Click [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) to view details.
282+ color : 0x28A745 # Green color for success
283+
260284 stop-large-ec2-runner :
261285 needs :
262286 - start-large-ec2-runner
You can’t perform that action at this time.
0 commit comments