From 5ab8d1e72344f17a6bb300c1804d2873541999ca Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Tue, 28 Apr 2020 12:13:54 +0800 Subject: [PATCH] Update build.yml * Change cnipv4url: [IceCodeNew/4Share:geoip_china/china_ip_list.txt](https://raw.githubusercontent.com/IceCodeNew/4Share/master/geoip_china/china_ip_list.txt) * Add more trigger --- .github/workflows/build.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 761611f..dda6b8d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,20 +1,22 @@ name: Build V2Ray rules dat files on: schedule: - - cron: "0 22 * * *" + - cron: "30 3 * * *" push: branches: - master - hidden + label: + types: [created, deleted] jobs: build: name: Build runs-on: ubuntu-latest steps: - - name: Setup Go 1.14 + - name: Setup Go 1.14.1 uses: actions/setup-go@v1 with: - go-version: 1.14 + go-version: 1.14.1 - name: Set $GOPATH and more variables run: | @@ -54,7 +56,7 @@ jobs: - name: Generate geoip.dat file run: | go get -u -v -insecure $GEOIP_REPO - geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --cnipv4url=https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt + geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --cnipv4url=https://raw.githubusercontent.com/IceCodeNew/4Share/master/geoip_china/china_ip_list.txt mkdir -p ./publish mv ./geoip.dat ./publish/