From 28b096a9ea86c406dc1246d98d98831c296143c3 Mon Sep 17 00:00:00 2001 From: arfoux <129370680+arfoux@users.noreply.github.com> Date: Sun, 25 Aug 2024 09:51:50 +0700 Subject: [PATCH] Create update.yml --- .workflows/update.yml | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .workflows/update.yml diff --git a/.workflows/update.yml b/.workflows/update.yml new file mode 100644 index 0000000..02ec593 --- /dev/null +++ b/.workflows/update.yml @@ -0,0 +1,45 @@ +name: Update adblock source list + +on: + schedule: + - cron: '0 */12 * * *' + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + # Isi dengan opsi jika diperlukan + # repository: '' + # ref: '' + # token: '' + # ssh-key: '' + # ssh-known-hosts: '' + # ssh-strict: '' + # ssh-user: '' + # persist-credentials: '' + # path: '' + # clean: '' + # filter: '' + # sparse-checkout: '' + # sparse-checkout-cone-mode: '' + # fetch-depth: '' + # fetch-tags: '' + # show-progress: '' + # lfs: '' + # submodules: '' + # set-safe-directory: '' + # github-server-url: '' + + - name: Download adblock lists + run: | + echo "Downloading big adblock list..." + curl -s 'https://big.oisd.nl/domainswild' -o big.txt + echo "Downloading small adblock list..." + curl -s 'https://small.oisd.nl/domainswild' -o small.txt + + - uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Apply update