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:
Chris Trevino 2022-10-31 09:59:13 -07:00 коммит произвёл GitHub
Родитель 18bd1fe5d9
Коммит b9bab69d73
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 15 добавлений и 9 удалений

11
.github/workflows/ci.yml поставляемый
Просмотреть файл

@ -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 }}

13
.github/workflows/nightly-tests.yml поставляемый
Просмотреть файл

@ -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 }}