build failure notification, update badges
This commit is contained in:
parent
c838316436
commit
df89ab41d5
@ -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 [](https://travis-ci.org/tornadocash/relayer) [](https://hub.docker.com/r/tornadocash/relayer/builds)
|
||||
# Relayer for Tornado Cash [](https://github.com/tornadocash/relayer/actions) [](https://hub.docker.com/repository/docker/tornadocash/relayer)
|
||||
|
||||
## Run locally
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user