ci: notify master commits via telegram (#143)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user