diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4efa4771bf..388c53cbbf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,8 +34,6 @@ jobs: echo "::set-env name=GEQ1AN_RULES_REJECT_URL::https://raw.githubusercontent.com/GeQ1an/Rules/master/QuantumultX/Filter/AdBlock.list" echo "::set-env name=LHIE1_RULES_PROXY_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Proxy.list" echo "::set-env name=LHIE1_RULES_REJECT_URL::https://raw.githubusercontent.com/lhie1/Rules/master/Surge/Surge%203/Provider/Reject.list" - echo "::set-env name=EASYLIST_and_CHINA::https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt" - echo "::set-env name=EASYLIST_PRIVACY::https://easylist-downloads.adblockplus.org/easyprivacy.txt" echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)" echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin" shell: bash @@ -85,8 +83,6 @@ jobs: curl -sSL $PROFILES_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+REJECT/ {print $2}' > temp-reject.txt curl -sSL $GEQ1AN_RULES_REJECT_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+AdBlock/ {print $2}' >> temp-reject.txt curl -sSL $LHIE1_RULES_REJECT_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+/ {print $2}' >> temp-reject.txt - curl -sSL $EASYLIST_and_CHINA | perl -ne '/^\|\|((?=.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt - curl -sSL $EASYLIST_PRIVACY | perl -ne '/^\|\|((?=.{3,255})[a-zA-Z0-9][-_a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-_a-zA-Z0-9]{0,62})+)\^($|\$third-party$)/ && print "$1\n"' | perl -ne 'print if not /^(\d+\.){3}\d+$/' >> temp-reject.txt - name: Add proxy, direct and reject domains from "hidden" branch to appropriate temp files run: |