From 5c1271a56e58043bf67666c7cc0ecffd99a7e959 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 6 May 2020 17:51:42 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Add=20discord=20notification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install_py2.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/test_install_py2.yml b/.github/workflows/test_install_py2.yml index 0b6d0dbf1..261785cb2 100644 --- a/.github/workflows/test_install_py2.yml +++ b/.github/workflows/test_install_py2.yml @@ -22,6 +22,19 @@ jobs: - name: 👷 Build and install checkout run: | pip install . + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python 2 for `master` was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python 2 for `master` failed' install-latest: runs-on: ubuntu-latest @@ -33,3 +46,16 @@ jobs: - name: 👷 Build and install latest from PyPI run: | pip install OctoPrint + - name: 📧 Discord success notification + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '☑️ Test install on Python 2 for latest release was successful' + - name: 📧 Discord failure notification + if: failure() + env: + DISCORD_WEBHOOK: ${{ secrets.discord_webhook_foosel }} + uses: Ilshidur/action-discord@master + with: + args: '🚫 Test install on Python 2 for latest release failed'