Skip to content

Commit 2ef3d6e

Browse files
authored
Merge pull request #376 from RobotSail/add-discord-e2e
feat: add discord e2e status reporting
2 parents 8e6be0d + ee03bdd commit 2ef3d6e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/e2e-nvidia-l40s-x4.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)