From 43362a0817af6763a181c7cb93d6419aa1d74c98 Mon Sep 17 00:00:00 2001 From: Xi Xu Date: Wed, 23 Oct 2024 22:24:59 +0800 Subject: [PATCH] Update run.yml --- .github/workflows/run.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index c8e027b..57edeeb 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -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