Skip to content

SmartDNS-CN

SmartDNS-CN #942

Workflow file for this run

name: SmartDNS-CN
on:
push:
schedule:
- cron: '45 19 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Actions/Checkout
uses: actions/checkout@main
- name: Actions/Setup-Python
uses: actions/setup-python@main
with:
python-version: 3.7
- name: Download Rules
run: |
cd smartdns_cn_rules
wget "https://github.com/felixonmars/dnsmasq-china-list/raw/master/accelerated-domains.china.conf" -O accelerated-domains.china.conf
wget "https://github.com/felixonmars/dnsmasq-china-list/raw/master/apple.china.conf" -O apple.china.conf
wget "https://github.com/felixonmars/dnsmasq-china-list/raw/master/google.china.conf" -O google.china.conf
python rules.py
- name: Commit
run: |
git config --global user.email [email protected]
git config --global user.name BlackTouma
git add .
git commit -m "update" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}