From 735d73638493f9ce9ebb679753f3a9c6d08c90be Mon Sep 17 00:00:00 2001 From: tasi788 Date: Tue, 8 Dec 2020 18:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E8=87=AA=E5=8B=95=E5=9E=83?= =?UTF-8?q?=E5=8F=96=20280blocker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/280blocker.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/280blocker.yml diff --git a/.github/workflows/280blocker.yml b/.github/workflows/280blocker.yml new file mode 100644 index 0000000..47d9a32 --- /dev/null +++ b/.github/workflows/280blocker.yml @@ -0,0 +1,25 @@ +name: 280blocker + +on: + push: + schedule: + - cron: "*/2 * * * *" + +jobs: + go: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: 280blocker_adblock + uses: wei/curl@master + with: + args: https://280blocker.net/files/280blocker_adblock_$(date +%Y%m).txt -o 280blocker/280blocker_adblock.txt + - name: 280blocker_domain_ag + uses: wei/curl@master + with: + args: https://280blocker.net/files/280blocker_domain_ag_$(date +%Y%m).txt -o 280blocker/280blocker_domain_ag.txt + - name: push + uses: actions-go/push@v1 + with: + commit-files: 280blocker_domain_ag.txt, 280blocker_adblock.txt + commit-message: "🤖 update 280blocker_$(date +%Y%m)"