-
Notifications
You must be signed in to change notification settings - Fork 20
33 lines (26 loc) · 731 Bytes
/
ci.yml
File metadata and controls
33 lines (26 loc) · 731 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
name: Auto Mirror (twice a day)
on:
schedule:
- cron: "0 3 * * *" # 06:00 МСК
- cron: "0 21 * * *" # 24:00 МСК
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 55 # защита от зависаний
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install requests==2.32.5 PyGithub==2.8.1
- name: Run mirror script
env:
MY_TOKEN: ${{ secrets.MY_TOKEN }}
run: |
python mirror.py