添加 .gitea/workflows/surge_to_gogost.yml

This commit is contained in:
2024-11-09 07:13:37 +00:00
parent 04223c394c
commit 29b4ff9e43

View 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