Skip to content

Commit

Permalink
Update sync_custom_clash.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethersailor authored Jan 19, 2025
1 parent 286b179 commit 701a60e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/sync_custom_clash.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
cd target-repo
# 删除 [custom] 之前的内容(保留 [custom] 行本身)
sed -i '1,/^\[custom\]/ { /^[[]custom[]]/!d }' cfg/Custom_Clash_Full.ini
sed -i '1,/^\[custom\]/ { /^\[custom\]$/!d }' cfg/Custom_Clash_Full.ini
# 添加内容到文件开头并加两个空行
sed -i '1i ;Custom_Clash_Rules\n;全分组防 DNS 泄漏订阅转换模板\n;作者:https://github.com/Aethersailor\n;项目地址:https://github.com/Aethersailor/Custom_Clash_Rules\n;该订阅模板为 Custom_OpenClash_Rules 项目的衍生项目\n;基于 ACL4SSR 模板魔改而来,感谢原作者!\n\n' cfg/Custom_Clash_Full.ini
Expand All @@ -54,4 +54,4 @@ jobs:
git commit -m "Update Custom_Clash_Full.ini based on Custom_Clash.ini"
git push https://[email protected]/Aethersailor/Custom_Clash_Rules.git main
env:
TARGET_REPO_TOKEN: ${{ secrets.TARGET_REPO_TOKEN }}
TARGET_REPO_TOKEN: ${{ secrets.TARGET_REPO_TOKEN }}

0 comments on commit 701a60e

Please sign in to comment.