mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-25 20:40:36 +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: |
|
run: |
|
||||||
python manage.py check
|
python manage.py check
|
||||||
python manage.py test
|
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
|
name: playwright-report
|
||||||
path: playwright-report/
|
path: playwright-report/
|
||||||
retention-days: 30
|
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