Skip to content

Build New Hosts File #637

Build New Hosts File

Build New Hosts File #637

Workflow file for this run

name: Host
on:
workflow_dispatch:
schedule:
- cron: "0 8 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: setup git config
run: |
git config user.name "pantsufan"
git config user.email "joel28@protonmail.com"
- name: commit
run: |
# Stage the file, commit and push
git rm hosts
git commit -m "Removed Host File"
git push origin master
- name: Start Building
run: |
echo "Starting...."
wget https://hblock.molinero.dev/hosts
wget https://o0.pages.dev/Lite/hosts.txt
sed '1,33d' hosts.txt >> hosts
rm hosts.txt
wget https://raw.githubusercontent.com/ABPindo/indonesianadblockrules/master/subscriptions/hosts.txt
cat hosts.txt >> hosts
rm hosts.txt
mv hosts og_hosts
wget https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/porn/hosts
mv hosts hosts.txt
sed '1,40d' hosts.txt >> hosts
cat hosts >> og_hosts
mv og_hosts hosts
rm hosts.txt
sed -i "/s.youtube.com/d" hosts
sed -i "/s2.youtube.com/d" hosts
echo "Done Building!"
- name: commit
run: |
# Stage the file, commit and push
git add hosts
git commit -m "Host File Updated"
git push origin master