All checks were successful
SurgeToGoGostConverter / convert (push) Successful in 6s
30 lines
920 B
YAML
30 lines
920 B
YAML
name: SurgeToGoGostConverter
|
|
on:
|
|
push:
|
|
paths:
|
|
- .gitea/workflows/surge_to_gogost.yml # 仅在该文件被修改时触发
|
|
- .gitea/workflows/convert_surge_to_gogost.py
|
|
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: python .gitea/workflows/convert_surge_to_gogost.py
|
|
|
|
- name: Commit and push changes
|
|
run: |
|
|
git config --global user.name "yuanzhen869"
|
|
git config --global user.email "yuanzhen869@gmail.com"
|
|
git add .
|
|
git commit -m "surge_to_gogost" || echo "No changes to commit"
|
|
git push origin main |