mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 12:30:37 +03:00
T: Add telegram reporting
This commit is contained in:
parent
e4d38b1093
commit
4956fbe1ba
13
.github/workflows/backend.yml
vendored
13
.github/workflows/backend.yml
vendored
|
@ -40,3 +40,16 @@ jobs:
|
|||
run: |
|
||||
python manage.py check
|
||||
python manage.py test
|
||||
notify-failure:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: failure()
|
||||
defaults:
|
||||
run:
|
||||
working-directory: .
|
||||
steps:
|
||||
- name: Send Telegram Notification
|
||||
run: |
|
||||
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
|
||||
-d chat_id=${{ secrets.TELEGRAM_CHAT_ID }} \
|
||||
-d text="❌ Backend build failed! Repository: ${{ github.repository }} Commit: ${{ github.sha }}"
|
||||
|
|
13
.github/workflows/frontend.yml
vendored
13
.github/workflows/frontend.yml
vendored
|
@ -49,3 +49,16 @@ jobs:
|
|||
name: playwright-report
|
||||
path: playwright-report/
|
||||
retention-days: 30
|
||||
notify-failure:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: failure()
|
||||
defaults:
|
||||
run:
|
||||
working-directory: .
|
||||
steps:
|
||||
- name: Send Telegram Notification
|
||||
run: |
|
||||
curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
|
||||
-d chat_id=${{ secrets.TELEGRAM_CHAT_ID }} \
|
||||
-d text="❌ Front build failed! Repository: ${{ github.repository }} Commit: ${{ github.sha }}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user