-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
286b179
commit 701a60e
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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 }} |