Skip to content

Commit

Permalink
Merge pull request #455 from RobotSail/add-discord-e2e
Browse files Browse the repository at this point in the history
feat: add discord e2e status reporting
  • Loading branch information
mergify[bot] authored Dec 18, 2024
2 parents fd2db9f + 3228a14 commit 3ca74e2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/e2e-nvidia-l40s-x4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,30 @@ jobs:
channel: 'e2e-ci-results'
text: "*e2e-nvidia-l40s-x4* job in *${{ github.repository }}* running on branch `${{ steps.check_pr.outputs.pr_or_branch }}` completed *successfully* :meow_party: | ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
- name: Send Discord notification for failure
if: failure() && steps.check_pr.outputs.is_pr == 'false'
uses: sarisia/actions-status-discord@65843b6a7d18626c252a055e247ccad1f41b4004 # v1.15.1
with:
webhook: ${{ secrets.SON_OF_JEEVES_DISCORD_WEBHOOK }}
status: ${{ job.status }}
title: "e2e-nvidia-l40s-x4"
description: |
Job in **${{ github.repository }}** running on branch `${{ steps.check_pr.outputs.pr_or_branch }}` completed **with failures** ❌
Click [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) to view details.
color: 0xCB2431 # Red color for failure

- name: Send Discord notification for success
if: success() && steps.check_pr.outputs.is_pr == 'false'
uses: sarisia/actions-status-discord@65843b6a7d18626c252a055e247ccad1f41b4004 # v1.15.1
with:
webhook: ${{ secrets.SON_OF_JEEVES_DISCORD_WEBHOOK }}
status: ${{ job.status }}
title: "e2e-nvidia-l40s-x4"
description: |
Job in **${{ github.repository }}** running on branch `${{ steps.check_pr.outputs.pr_or_branch }}` completed **successfully** ✅
Click [here](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) to view details.
color: 0x28A745 # Green color for success

stop-large-ec2-runner:
needs:
- start-large-ec2-runner
Expand Down

0 comments on commit 3ca74e2

Please sign in to comment.