forked from CheatBreakerNet/Client-API
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 793 Bytes
/
Copy pathping-servers.yml
File metadata and controls
36 lines (30 loc) · 793 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
34
35
36
name: Ping Servers
on:
push:
branches:
- master
paths-ignore:
- 'mappings/index.json'
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
ping-servers:
runs-on: ubuntu-latest
steps:
# Prepare the working dir
- name: Clear any existing files
run: rm -rf *
- uses: actions/checkout@v7
with:
token: ${{ secrets.PAT }}
- name: Setup Python 3.9
uses: actions/setup-python@v7
with:
python-version: '3.9'
- name: Install Python dependencies
run: pip install -r mappings/scripts/requirements.txt
- name: Validate Server Status
run: |
cd mappings
python3 scripts/validate_status.py --servers_dir servers --inactive_file inactive.json