Skip to content

Merge Script

Merge Script #1346

Workflow file for this run

name: Merge Script
on:
push:
branches:
- main # 替换为你的默认分支
schedule:
- cron: '0 0,8,18 * * *' # 每6h一次
workflow_dispatch: # 触发手动事件
jobs:
merge:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11 # 替换为你的 Python 版本
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run merge script
run: python meta_merge.py # 替换为你的 merge.py 脚本名称
- name: Run shadowrocket merge script
run: python merge.py # 替换为你的 merge.py 脚本名称
- name: Commit Changes
run: |
git config core.ignorecase false
git config --local user.email "[email protected]"
git config --local user.name "vveg26"
git add .
git commit -m "Updated at $(date '+%Y-%m-%d %H:%M:%S')"
git push