diff --git a/.github/workflows/modules.yml b/.github/workflows/modules.yml index 09d2ab1..6b24bbe 100644 --- a/.github/workflows/modules.yml +++ b/.github/workflows/modules.yml @@ -45,4 +45,19 @@ jobs: run: terraform apply -auto-approve - name: Terraform destroy - run: terraform destroy -auto-approve \ No newline at end of file + 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}}