Skip to content

Create adblock360.txt #54

Create adblock360.txt

Create adblock360.txt #54

Workflow file for this run

name: Build Adblock360
on:
push:
paths:
- 'data/adblock360.txt'
branches:
- main
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build List
run: |
mkdir -p lists
grep -v '^$' data/adblock360.txt | sort -u | sed 's/^/0.0.0.0 /' > lists/adblock360.hosts
- name: Commit and Push
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add lists/adblock360.hosts
git commit -m "Auto-update Adblock360 list" || echo "No changes to commit"
git push