blob: 3c897dbcbbc66bfd002031c0e7c47ebca73ab515 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
name: Alert Died Runners
on:
schedule:
# Run every 2 hours
- cron: '0 */2 * * *'
# Can also be triggered manually
workflow_dispatch:
jobs:
check-died-runners:
runs-on: [ self-hosted, auto-provisioned, build-preset-analytic-node]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Run dead runner checker and send to Telegram
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_YDBOT_TOKEN }}
GH_ALERTS_TG_LOGINS: ${{ vars.GH_ALERTS_TG_LOGINS }}
run: |
python .github/scripts/shutdown_runner_alert.py \
--chat-id ${{ vars.GH_ALERTS_TG_CHAT }} \
--token ${{ secrets.GITHUB_TOKEN }} \
--hours-delta 3 \
--max-rows 100
|