From 1f900843deeee7a3304a45070b4ba0479d1ef8fc Mon Sep 17 00:00:00 2001 From: _den Date: Wed, 16 Feb 2022 12:37:24 +0300 Subject: [PATCH] added discord notification (#86) * added discord notification * updated notification message * updated discord notification * updated discord notification message Co-authored-by: _den <_den@outlook.com> --- .github/workflows/build.yml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ebdee1c..baec3b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: - run: yarn test - run: yarn lint - name: Telegram Failure Notification - uses: appleboy/telegram-action@0.0.7 + uses: appleboy/telegram-action@master if: failure() with: message: ❗ Build failed for [${{ github.repository }}](https://github.com/${{ github.repository }}/actions) because of ${{ github.actor }} @@ -56,7 +56,7 @@ jobs: password: ${{ secrets.DOCKER_TOKEN }} - name: Telegram Message Notify - uses: appleboy/telegram-action@0.0.7 + uses: appleboy/telegram-action@master with: to: ${{ secrets.TELEGRAM_CHAT_ID }} token: ${{ secrets.TELEGRAM_BOT_TOKEN }} @@ -65,22 +65,35 @@ jobs: format: markdown - name: Telegram Relayer Channel Notification - uses: appleboy/telegram-action@0.0.7 + uses: appleboy/telegram-action@master with: to: ${{ secrets.TELEGRAM_RELAYER_CHAT_ID }} token: ${{ secrets.TELEGRAM_BOT_TOKEN }} message: | - 🚀 Published a new version of the relayer node service to docker hub: `tornadocash/relayer:v${{ steps.vars.outputs.version }}` and `tornadocash/relayer:mining`. + 🚀 Published a new version of the relayer node service for mainnet to docker hub: `tornadocash/relayer:v${{ steps.vars.outputs.version }}` and `tornadocash/relayer:mining`. + + ❗️Please update your mainnet nodes ❗️ + DO NOT TOUCH SIDECHAINS AND NOVA RELAYERS. - ❗️Please update your nodes ❗️ debug: true format: markdown + - name: Discord Relayer Channel Notification + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_RELAYER_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: | + 🚀 Published a new version of the relayer node service for mainnet to docker hub: `tornadocash/relayer:v${{ steps.vars.outputs.version }}` and `tornadocash/relayer:mining`. + + ❗️Please update your mainnet nodes ❗️ + DO NOT TOUCH SIDECHAINS AND NOVA RELAYERS. + - name: Telegram Failure Notification - uses: appleboy/telegram-action@0.0.7 + uses: appleboy/telegram-action@master if: failure() with: - message: ❗ Failed to publish [${{ steps.vars.outputs.repo_name }}](https://github.com/${{ github.repository }}/actions) because of ${{ github.actor }} + message: ❗ Failed to publish [${{ steps.vars.outputs.repo_name }}](https://github.com/${{ github.repository }}/actions):v${{ steps.vars.outputs.version }} for mainnet because of ${{ github.actor }} format: markdown to: ${{ secrets.TELEGRAM_CHAT_ID }} token: ${{ secrets.TELEGRAM_BOT_TOKEN }}