Use a different github action for notifying discord (#731)
use a different github action for notifying discord Signed-off-by: Chris Trevino <darthtrevino@gmail.com> Signed-off-by: Chris Trevino <darthtrevino@gmail.com>
This commit is contained in:
Родитель
18bd1fe5d9
Коммит
b9bab69d73
|
@ -49,8 +49,11 @@ jobs:
|
|||
- name: Test
|
||||
run: poetry run poe test --splits 6 --group ${{ matrix.test-group }}
|
||||
|
||||
- uses: fateyan/action-discord-notifier@v1
|
||||
- name: Notify Discord
|
||||
if: failure() && github.ref == 'refs/heads/main'
|
||||
with:
|
||||
message-title: CI Failed on Main
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
uses: th0th/notify-discord@v0.4.1
|
||||
env:
|
||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
GITHUB_ACTOR: ${{ github.actor }}
|
||||
GITHUB_JOB_NAME: CI Failed on Main
|
||||
GITHUB_JOB_STATUS: ${{ job.status }}
|
|
@ -41,8 +41,11 @@ jobs:
|
|||
- name: Run Advanced Tests
|
||||
run: poetry run poe test_advanced --splits 4 --group ${{ matrix.test-group }}
|
||||
|
||||
- uses: fateyan/action-discord-notifier@v1
|
||||
if: failure()
|
||||
with:
|
||||
message-title: Nightly Advanced Tests Failed
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
- name: Notify Discord
|
||||
if: github.ref == 'refs/heads/main'
|
||||
uses: th0th/notify-discord@v0.4.1
|
||||
env:
|
||||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK }}
|
||||
GITHUB_ACTOR: ${{ github.actor }}
|
||||
GITHUB_JOB_NAME: Nightly Tests ${{ job.status == 'success' && 'Passed' || 'Failed' }}
|
||||
GITHUB_JOB_STATUS: ${{ job.status }}
|
||||
|
|
Загрузка…
Ссылка в новой задаче