build failure notification, update badges

This commit is contained in:
poma 2020-08-19 11:32:38 +03:00
parent c838316436
commit df89ab41d5
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657
2 changed files with 21 additions and 4 deletions

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

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