Update Google blocklists #769
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '**_light.txt' | |
name: Update lists with ABP syntax | |
jobs: | |
abp-syntax: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo content | |
uses: actions/checkout@v4 | |
- name: create ABP lists | |
run: | | |
sed 's/^/\|\|/;s/$/\^/' Google_hostnames.txt > Google_hostnames_ABP.txt | |
sed 's/^/\|\|/;s/$/\^/' Google_hostnames_light.txt > Google_hostnames_light_ABP.txt | |
sed 's/^/\|\|/;s/$/\^$all/' Google_hostnames.txt > Google_hostnames_UBO.txt | |
sed 's/^/\|\|/;s/$/\^$all/' Google_hostnames_light.txt > Google_hostnames_light_UBO.txt | |
- name: commit files | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git diff --name-only --cached --exit-code || ( git commit -am "Update ABP blocklists" && git push ) |