mirror of
https://github.com/v2fly/domain-list-community.git
synced 2024-11-16 17:14:52 +02:00
Refine repo url
This commit is contained in:
parent
0c6530ff3f
commit
d320c8e521
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@ -21,20 +21,21 @@ jobs:
|
||||
echo "::set-env name=NAME::$(date +%Y%m%d%H%M)"
|
||||
echo "::set-env name=TAG_NAME::$(date +%Y%m%d%H%M)"
|
||||
echo "::set-env name=GOPATH::$(dirname $GITHUB_WORKSPACE)"
|
||||
echo "::set-env name=REPO_URL::github.com/v2ray/domain-list-community"
|
||||
echo "::add-path::$(dirname $GITHUB_WORKSPACE)/bin"
|
||||
shell: bash
|
||||
|
||||
- name: Get geosite code
|
||||
run: |
|
||||
go get -u -v -insecure github.com/v2ray/domain-list-community
|
||||
go get -u -v -insecure $REPO_URL
|
||||
|
||||
- name: Automatically generate ookla-speedtest sub-list from source
|
||||
run: |
|
||||
curl -L -o servers-source.xml "https://c.speedtest.net/speedtest-servers-static.php"
|
||||
cat servers-source.xml | sed -nEe 's/.+host="(.+):[0-9]+".+/\L\1/p' | sort -u > hosts-with-ip.txt
|
||||
sed -E '/^([0-9]{1,3}\.){3}[0-9]{1,3}$/d' hosts-with-ip.txt > hosts-without-ip.txt
|
||||
cat hosts-without-ip.txt | awk '{print "full:$0\n"}' > $GOPATH/src/github.com/v2ray/domain-list-community/data/ookla-speedtest
|
||||
echo "include:ookla-speedtest-ads" >> $GOPATH/src/github.com/v2ray/domain-list-community/data/ookla-speedtest
|
||||
cat hosts-without-ip.txt | awk '{print "full:$0\n"}' > $GOPATH/src/$REPO_URL/data/ookla-speedtest
|
||||
echo "include:ookla-speedtest-ads" >> $GOPATH/src/$REPO_URL/data/ookla-speedtest
|
||||
|
||||
- name: Build geosite.dat file
|
||||
run: |
|
||||
|
Loading…
Reference in New Issue
Block a user