mirror of
https://github.com/Loyalsoldier/v2ray-rules-dat.git
synced 2024-11-10 02:55:34 +08:00
Fix typos & indent
This commit is contained in:
parent
b1148f1bb7
commit
82a87b23e6
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build v2ray rules dat files
|
name: Build V2Ray rules dat files
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 22 * * *"
|
- cron: "0 22 * * *"
|
||||||
@ -41,12 +41,12 @@ jobs:
|
|||||||
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
|
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Checkout branch named hidden of this repo
|
- name: Checkout the "hidden" branch
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: hidden
|
ref: hidden
|
||||||
|
|
||||||
- name: Get GeoLite2 file
|
- name: Get GeoLite2 zip file
|
||||||
run: |
|
run: |
|
||||||
curl -L -o GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=JvbzLLx7qBZT&suffix=zip"
|
curl -L -o GeoLite2-Country-CSV.zip "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&license_key=JvbzLLx7qBZT&suffix=zip"
|
||||||
unzip GeoLite2-Country-CSV.zip
|
unzip GeoLite2-Country-CSV.zip
|
||||||
@ -63,7 +63,7 @@ jobs:
|
|||||||
- name: Download geosite project
|
- name: Download geosite project
|
||||||
run: |
|
run: |
|
||||||
go get -u -v -insecure $GEOSITE_REPO
|
go get -u -v -insecure $GEOSITE_REPO
|
||||||
|
|
||||||
- name: Automatically generate ookla-speedtest sub-list from source
|
- name: Automatically generate ookla-speedtest sub-list from source
|
||||||
run: |
|
run: |
|
||||||
curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php"
|
curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php"
|
||||||
@ -88,7 +88,7 @@ jobs:
|
|||||||
curl -sSL $GEQ1AN_RULES_MICROSOFT_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+Microsoft/ {print $2}' >> temp-proxy.txt
|
curl -sSL $GEQ1AN_RULES_MICROSOFT_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+Microsoft/ {print $2}' >> temp-proxy.txt
|
||||||
curl -sSL $GEQ1AN_RULES_GLOBAL_MEDIA_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+GMedia/ {print $2}' >> temp-proxy.txt
|
curl -sSL $GEQ1AN_RULES_GLOBAL_MEDIA_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+GMedia/ {print $2}' >> temp-proxy.txt
|
||||||
curl -sSL $GEQ1AN_RULES_OUTSIDE_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+Outside/ {print $2}' >> temp-proxy.txt
|
curl -sSL $GEQ1AN_RULES_OUTSIDE_URL | awk -F ',' '/^(HOST|DOMAIN)(,|\-SUFFIX,).+Outside/ {print $2}' >> temp-proxy.txt
|
||||||
|
|
||||||
- name: Get and add reject domains into temp-reject.txt file
|
- name: Get and add reject domains into temp-reject.txt file
|
||||||
run: |
|
run: |
|
||||||
curl -sSL $PROFILES_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+REJECT/ {print $2}' > temp-reject.txt
|
curl -sSL $PROFILES_URL | awk -F ',' '/^DOMAIN(,|\-SUFFIX,).+REJECT/ {print $2}' > temp-reject.txt
|
||||||
|
Loading…
Reference in New Issue
Block a user