-
Notifications
You must be signed in to change notification settings - Fork 61
34 lines (30 loc) · 990 Bytes
/
lof.yml
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
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: LOF
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
# GitHub Actions 使用的是UTC时间,比北京时间慢八个小时
# 例:如需调整为14:30, 将45改为30即可
# 设置仅周内运行,将最后一个'*'改为'1-5'
- cron: '45 6 * * *'
jobs:
LOF:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run LOF script
run: |
python -m pip install --upgrade pip
pip install requests pytz datetime configparser
sed -i "s/ServerChanKey/${{ secrets.ServerChanKey }}/g" config.cfg
python ./lof.py >> /dev/null