ci: notify master commits via telegram (#143)

This commit is contained in:
banteg
2026-01-15 22:20:04 +04:00
committed by GitHub
parent cabb796b19
commit a71bfd4dbe
2 changed files with 99 additions and 0 deletions
+22
View File
@@ -68,3 +68,25 @@ jobs:
echo ""
uv run --no-sync python -m coverage report || true
} >> "$GITHUB_STEP_SUMMARY"
notify-commit:
name: notify-commit
runs-on: ubuntu-latest
needs: checks
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && needs.checks.result == 'success' }}
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.14"
enable-cache: true
- name: Send Telegram notification
run: uv run scripts/commit_notify.py
env:
REPO: ${{ github.repository }}
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}