-
Notifications
You must be signed in to change notification settings - Fork 19
44 lines (38 loc) · 1.1 KB
/
check.yml
File metadata and controls
44 lines (38 loc) · 1.1 KB
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
38
39
40
41
42
43
44
name: Minecraft monitor
on:
schedule:
- cron: '*/5 * * * *'
workflow_dispatch: {}
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install deps
run: pip install mcstatus requests
- name: Debug workspace
run: |
echo "=== Содержимое репозитория ==="
ls -la
echo "=== scripts/ ==="
ls -la scripts || echo "scripts/ не найдена"
- name: Run checker
env:
TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
MC_HOST: "yaneznau.peniscraft.pro"
MC_TIMEOUT: "5"
run: python scripts/check.py
- name: Upload state files
uses: actions/upload-artifact@v4
with:
name: minecraft-state
path: |
scripts/last_players.txt
scripts/playtime.json