-
Notifications
You must be signed in to change notification settings - Fork 35
33 lines (28 loc) · 869 Bytes
/
daily.yml
File metadata and controls
33 lines (28 loc) · 869 Bytes
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
name: Daily DESCO Check
on:
schedule:
- cron: "5 2 * * *" # 02:05 UTC = 08:05 Dhaka (avoid top of hour)
workflow_dispatch: # allow manual run from Actions tab
jobs:
run:
runs-on: ubuntu-latest
concurrency:
group: desco-daily
cancel-in-progress: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install deps
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run checker
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
ACCOUNT_NO: ${{ secrets.ACCOUNT_NO }} # e.g., 500
run: python check_balance.py