Skip to content

Commit

Permalink
Добавил уведомления в телегу о зафейленном пайплайне (#1)
Browse files Browse the repository at this point in the history
* add telegram notification example

* add telegram notification for failed pipeline

* add gihub action env

* add gihub action path env

* add gihub workflow env

* add github run id env

* fix failed pipeline

* enable cron

* update notify message

* enable cron
  • Loading branch information
antonaleks authored Jan 12, 2024
1 parent 627f2e2 commit 21dc173
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/modules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,19 @@ jobs:
run: terraform apply -auto-approve

- name: Terraform destroy
run: terraform destroy -auto-approve
run: terraform destroy -auto-approve

- name: Telegram notify if job was failed
if: ${{ failure() }}
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message: |
-= GITHUB public repository selectel/selectel-infra-examples =-
Terraform modules build pipeline was failed
🚨 Critical
Не катится пайпа, необходимо принять меры, возможно внутренние пайпы с terraform так же не будут катиться.
⚡️Workflow: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
🔥 See changes: https://github.com/${{ github.repository }}/commit/${{github.sha}}

0 comments on commit 21dc173

Please sign in to comment.