Skip to content

SystemJargon Filters - Lists Compiler and Updater #702

SystemJargon Filters - Lists Compiler and Updater

SystemJargon Filters - Lists Compiler and Updater #702

Workflow file for this run

name: SystemJargon Filters - Lists Compiler and Updater
on:
schedule:
- cron: '0 1 * * *'
# workflow_dispatch:
# push:
# branches:
# - main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@main
with:
node-version: '16'
- run: npm i -g @adguard/hostlist-compiler
# Lists input and output
- name: Compile Threats list
run: hostlist-compiler -c ./source/threats.json -o threats.txt
- name: Compile Ads list
run: hostlist-compiler -c ./source/ads.json -o ads.txt
- name: Compile Core Normal list
run: hostlist-compiler -c ./source/core.json -o core.txt
- name: Compile Core Light list
run: hostlist-compiler -c ./source/core_light.json -o core_light.txt
- name: Compile Core Heavy list
run: hostlist-compiler -c ./source/core_heavy.json -o core_heavy.txt
- name: Compile Porn list
run: hostlist-compiler -c ./source/porn.json -o porn.txt
- name: Compile BigDargon list
run: hostlist-compiler -c ./source/hostsvn.json -o hostsvn.txt
- name: Compile Telemetry list
run: hostlist-compiler -c ./source/telemetry.json -o telemetry.txt
- name: Compile Firebog Ticklist
run: hostlist-compiler -c ./source/firebog-ticklist.json -o firebog-ticklist.txt
- name: Compile Allow list
run: hostlist-compiler -c ./source/allowlist.json -o allowlist.txt
- name: Compile Restrict-ByPass list
run: hostlist-compiler -c ./source/restrict-bypass.json -o restrict-bypass.txt
- name: Compile Newly Registered Domains 30 Day list
run: hostlist-compiler -c ./source/nrds-30days.json -o nrds-30days.txt
- name: Compile No Social Media list
run: hostlist-compiler -c ./source/no-social-media.json -o no-social-media.txt
- name: Update Restrict ByPass and No-Social-Media User_Child Lists
run: |
cat restrict-bypass.txt | sed "s/\^$/\^\$ctag=user_child/g" > restrict-bypass-user_child.txt
cat no-social-media.txt | sed "s/\^$/\^\$ctag=user_child/g" > no-social-media-user_child.txt
- name: Start commit change
run: echo "MSG=Update filter list at $(date +"%Y%m%d")" >> $GITHUB_ENV
- name: Commit changes
uses: EndBug/add-and-commit@main
with:
default_author: github_actions
message: ${{ env.MSG }}