Skip to content

Commit 349d309

Browse files
committed
Add Real Madrid Matches Time Workflow File
1 parent a9a04c8 commit 349d309

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Run Real Madrid Matches Time Script
2+
3+
on:
4+
workflow_dispatch:
5+
repository_dispatch:
6+
types: [Real Madrid Matches Time]
7+
8+
jobs:
9+
run-all:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: "3.11"
20+
- name: Cache pip
21+
uses: actions/cache@v4
22+
with:
23+
path: ~/.cache/pip
24+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
25+
restore-keys: |
26+
${{ runner.os }}-pip-
27+
28+
- run: pip install -r requirements.txt
29+
30+
- name: Run Real Madrid Matches Time Script
31+
env:
32+
TELEGRAM_TOKEN_REAL_MADRID: ${{ secrets.TELEGRAM_TOKEN_REAL_MADRID }}
33+
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
34+
run: |
35+
python -m scripts.real_madrid.matches_time

scripts/real_madrid/matches_time.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
print("Faild to send telegram message - Continue")
171171
continue
172172
print("Telegram message sended successfully")
173+
print("✅ Work ended successfully - Exitting...")
173174
else:
174175
print("❗ No data avalibale - Existting")
175176
else:

0 commit comments

Comments
 (0)