Merge pull request #22 from FutaGuard/dev

280blocker 自動建構
This commit is contained in:
踢低吸 2020-12-08 20:12:15 +08:00 committed by GitHub
commit c855fc71a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6397 additions and 0 deletions

28
.github/workflows/280blocker.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: 280blocker
on:
push:
schedule:
- cron: "0 */1 * * *"
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: get today date
id: date
run: export TZ='Asia/Taipei' && echo "::set-output name=date::$(date +'%Y-%m-%d-%H')"
- name: push
uses: actions-go/push@v1
with:
commit-files: 280blocker/280blocker_domain_ag.txt, 280blocker/280blocker_adblock.txt
commit-message: 🤖 update 280blocker_${{ steps.date.outputs.date }}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff