添加 .gitea/workflows/surge_to_gogost.yml
This commit is contained in:
21
.gitea/workflows/surge_to_gogost.yml
Normal file
21
.gitea/workflows/surge_to_gogost.yml
Normal file
@@ -0,0 +1,21 @@
|
||||
name: SurgeToGoGostConverter
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 * * * *" # 设置为每小时运行一次,或根据需要调整
|
||||
jobs:
|
||||
convert:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 检出代码
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: 设置 Python 环境
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: "3.x"
|
||||
|
||||
- name: 安装依赖(如有)
|
||||
run: pip install -r requirements.txt
|
||||
|
||||
- name: 运行转换脚本
|
||||
run: python convert_surge_to_gogost.py
|
||||
Reference in New Issue
Block a user