Update install_openclash_dev_opkg.sh #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge Clash Rules | ||
#on: | ||
# schedule: | ||
# - cron: '0 3 * * *' # 每天凌晨3点运行 | ||
workflow_dispatch: # 允许手动触发 | ||
jobs: | ||
merge-rules: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
pip install requests netaddr | ||
- name: Run Python script | ||
run: python py/merge_rules.py | ||
- name: Commit 和 push changes | ||
run: | | ||
git config --local user.name "github-actions[bot]" | ||
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git add rule/Lan.list | ||
git commit -m "Update LAN rules" | ||
git push |