From d017ceda7d3af158ab248350f5ca372c33a9a3b1 Mon Sep 17 00:00:00 2001 From: Kslr Date: Sat, 27 Jun 2020 21:15:13 +0800 Subject: [PATCH] Create dlc.yml --- .github/workflows/dlc.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/dlc.yml diff --git a/.github/workflows/dlc.yml b/.github/workflows/dlc.yml new file mode 100644 index 00000000..0727c0af --- /dev/null +++ b/.github/workflows/dlc.yml @@ -0,0 +1,28 @@ +name: Update dlc + +on: + schedule: + - cron: '0 0 * * FRI' + +jobs: + + build: + name: Update + runs-on: ubuntu-latest + steps: + + - name: Check out code into the Go module directory + uses: actions/checkout@v2 + + - name: Download and Write + run: | + curl -L -o release/config/geoip.dat "https://github.com/v2ray/geoip/raw/release/geoip.dat" + curl -L -o release/config/geosite.dat "https://github.com/v2ray/domain-list-community/raw/release/dlc.dat" + + - name: push + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "update geoip, geosite" -a + git push -v --progress +