Skip to content

Commit

Permalink
add message if failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanLav committed Jul 2, 2024
1 parent d62c9b6 commit 7982db4
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/support_generic_ledger_app_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
pr-base: master

- name: Send Telegram Notification
if: steps.make-pr.outputs.pr-url != ''
if: success() && steps.make-pr.outputs.pr-url != ''
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
Expand All @@ -53,3 +53,14 @@ jobs:
📒 New networks have been added to Generic Ledger App!
PR: ${{ steps.make-pr.outputs.pr-url }}
- name: Send Telegram Notification on Failure
if: failure()
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
❌ Workflow failed for Generic Ledger App update!
run-url: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}

0 comments on commit 7982db4

Please sign in to comment.