From 53cb08d9b95bad43b02430661c3c1d9ee241f3de Mon Sep 17 00:00:00 2001 From: poma Date: Wed, 19 Aug 2020 11:35:14 +0300 Subject: [PATCH] build failure notification --- .github/workflows/{nodejs.yml => build.yml} | 27 ++++++++++++++++++++- README.md | 2 +- 2 files changed, 27 insertions(+), 2 deletions(-) rename .github/workflows/{nodejs.yml => build.yml} (64%) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/build.yml similarity index 64% rename from .github/workflows/nodejs.yml rename to .github/workflows/build.yml index 2f850e0..21f589c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: Node.js CI +name: build on: pull_request: @@ -16,6 +16,14 @@ jobs: node-version: 14.7.0 - run: npm ci - run: npm run test + - 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 }} lint: runs-on: ubuntu-latest @@ -26,6 +34,14 @@ jobs: node-version: 14.7.0 - run: npm ci - run: npm run lint + - 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 @@ -65,3 +81,12 @@ jobs: message: 🚀 Published [${{ steps.vars.outputs.repo_name }}](https://github.com/${{ github.repository }}) version [${{ steps.vars.outputs.version }}](https://www.npmjs.com/package/${{ steps.vars.outputs.repo_name }}/v/${{ steps.vars.outputs.version }}) to npm 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 d7ace82..5856e80 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Merkle Tree [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tornadocash/fixed-merkle-tree/Node.js%20CI)](https://github.com/tornadocash/fixed-merkle-tree/actions) [![npm](https://img.shields.io/npm/v/fixed-merkle-tree)](https://www.npmjs.com/package/fixed-merkle-tree) +# Merkle Tree [![GitHub Workflow Status](https://img.shields.io/github/workflow/status/tornadocash/fixed-merkle-tree/build)](https://github.com/tornadocash/fixed-merkle-tree/actions) [![npm](https://img.shields.io/npm/v/fixed-merkle-tree)](https://www.npmjs.com/package/fixed-merkle-tree) This is a fixed depth merkle tree implementation with sequential inserts