From 44baadb6ff0b01ee467c5d068533b79a79534cfa Mon Sep 17 00:00:00 2001 From: Buckaroo Banzai <39065740+BuckarooBanzay@users.noreply.github.com> Date: Sun, 30 Aug 2020 18:10:41 +0200 Subject: [PATCH] add discord notifications --- .github/workflows/integration-test.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index dc9085f..b0399ce 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -13,3 +13,18 @@ jobs: - name: integration-test run: ./integration-test.sh + + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Integration test passed for branch `${{ github.ref }}` and commit `${{ github.sha }}`' + + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Integration test failed for branch `${{ github.ref }}` and commit `${{ github.sha }}`'