From df89ab41d5165e4fb9688746d5c452409509cd12 Mon Sep 17 00:00:00 2001 From: poma Date: Wed, 19 Aug 2020 11:32:38 +0300 Subject: [PATCH] build failure notification, update badges --- .github/workflows/{nodejs.yml => build.yml} | 23 ++++++++++++++++++--- README.md | 2 +- 2 files changed, 21 insertions(+), 4 deletions(-) rename .github/workflows/{nodejs.yml => build.yml} (70%) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/build.yml similarity index 70% rename from .github/workflows/nodejs.yml rename to .github/workflows/build.yml index b316272..49ab464 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: build on: push: @@ -17,10 +17,18 @@ jobs: node-version: 12 - run: npm ci - run: npm run eslint + - name: Telegram Failure Notification + uses: appleboy/telegram-action@0.0.7 + if: failure() + with: + message: ❗ Build failed for [${{ github.repository }}](https://github.com/${{ github.repository }}/actions) because of ${{ github.actor }} + format: markdown + to: ${{ secrets.TELEGRAM_CHAT_ID }} + token: ${{ secrets.TELEGRAM_BOT_TOKEN }} publish: runs-on: ubuntu-latest - needs: [build] + needs: build if: startsWith(github.ref, 'refs/tags') steps: - name: Checkout @@ -55,7 +63,7 @@ jobs: debug: true format: markdown - - name: Telegram Message Notify + - name: Telegram Notification uses: appleboy/telegram-action@0.0.7 with: to: ${{ secrets.TELEGRAM_RELAYER_CHAT_ID }} @@ -66,3 +74,12 @@ jobs: ❗️Please update your nodes ❗️ debug: true format: markdown + + - name: Telegram Failure Notification + uses: appleboy/telegram-action@0.0.7 + if: failure() + with: + message: ❗ Failed to publish [${{ steps.vars.outputs.repo_name }}](https://github.com/${{ github.repository }}/actions) because of ${{ env.GITHUB_ACTOR }} + format: markdown + to: ${{ secrets.TELEGRAM_CHAT_ID }} + token: ${{ secrets.TELEGRAM_BOT_TOKEN }} diff --git a/README.md b/README.md index e25010c..f0d57d4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Relayer for Tornado Cash [![Build Status](https://travis-ci.org/tornadocash/relayer.svg?branch=master)](https://travis-ci.org/tornadocash/relayer) [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/tornadocash/relayer.svg)](https://hub.docker.com/r/tornadocash/relayer/builds) +# Relayer for Tornado Cash [![Build Status](https://github.com/tornadocash/relayer/workflows/build/badge.svg)](https://github.com/tornadocash/relayer/actions) [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/tornadocash/relayer?logo=docker&logoColor=%23FFFFFF&sort=semver)](https://hub.docker.com/repository/docker/tornadocash/relayer) ## Run locally