Update run.yml

This commit is contained in:
xixu-me committed 2024-10-23 22:24:59 +08:00
1 parent bb2cf28961
commit 43362a0817
1 file changed
+3 -1
+3 -1
View File
@@ -98,13 +98,15 @@ jobs:
for file in "${files[@]}"; do
if [[ " ${merged_files[*]} " =~ " ${file} " ]]; then
input_dir="merged"
ruleset_type="domain"
elif [[ " ${ipcidr_files[*]} " =~ " ${file} " ]]; then
input_dir="loyalsoldier"
ruleset_type="ipcidr"
else
input_dir="loyalsoldier"
ruleset_type="domain"
fi
./converter/mihomo convert-ruleset ${ruleset_type:-domain} yaml ${input_dir}/${file}.yaml publish/${file}.mrs
./converter/mihomo convert-ruleset ${ruleset_type} yaml ${input_dir}/${file}.yaml publish/${file}.mrs
cp ${input_dir}/${file}.yaml publish/${file}.yaml
done
cp loyalsoldier/applications.yaml publish/applications.yaml