@@ -86,15 +86,15 @@ jobs:
8686 - name : Set up pinned Mihomo
8787 uses : ./.github/actions/setup-mihomo
8888
89- - name : Generate derived rules and Stash templates
89+ - name : Generate derived rules and Mainland compatibility template
9090 run : |
9191 python py/generate_rules.py --mihomo mihomo
92- python py/generate_stash_configs.py
92+ python py/generate_stash_configs.py --target mainland
9393
9494 - name : Test generation and conversion logic
9595 run : |
9696 python py/generate_rules.py --check --mihomo mihomo
97- python py/generate_stash_configs.py --check
97+ python py/generate_stash_configs.py --check --target mainland
9898
9999 - name : Commit and push changes
100100 id : publish
@@ -110,15 +110,13 @@ jobs:
110110 ':(glob)rule/game_rule/**/*.yaml'
111111 ':(glob)rule/game_rule/**/*.mrs'
112112 'cfg/Custom_Clash_Mainland.ini'
113- ':(glob)cfg/Custom_Stash*.ini'
114113 )
115114 generated_excludes=(
116115 ':(exclude,glob)rule/*.yaml'
117116 ':(exclude,glob)rule/*.mrs'
118117 ':(exclude,glob)rule/game_rule/**/*.yaml'
119118 ':(exclude,glob)rule/game_rule/**/*.mrs'
120119 ':(exclude)cfg/Custom_Clash_Mainland.ini'
121- ':(exclude,glob)cfg/Custom_Stash*.ini'
122120 )
123121 remote_main_sha() {
124122 git ls-remote --exit-code origin refs/heads/main |
@@ -132,8 +130,8 @@ jobs:
132130 git reset --hard origin/main
133131 python py/generate_rules.py --mihomo mihomo
134132 python py/generate_rules.py --check --mihomo mihomo
135- python py/generate_stash_configs.py
136- python py/generate_stash_configs.py --check
133+ python py/generate_stash_configs.py --target mainland
134+ python py/generate_stash_configs.py --check --target mainland
137135
138136 unexpected_changes="$(
139137 git status --short --untracked-files=all -- . \
0 commit comments