CI #3466
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
name: CI | |
on: | |
schedule: | |
- cron: "0 8,20 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
with: | |
token: ${{ secrets.GITHUB_PERSONAL_TOKEN }} | |
- name: dnsvalidator | |
run: | | |
git clone https://github.com/vortexau/dnsvalidator | |
cd dnsvalidator | |
pip3 install wheel | |
pip3 install setuptools | |
sudo python3 setup.py install | |
rm ../resolvers.txt | |
dnsvalidator -tL https://raw.githubusercontent.com/janmasarik/resolvers/master/resolvers.txt -threads 5 -o ../resolvers.txt | |
sed -i '/^$/d' ../resolvers.txt | |
- name: Commit resolvers.txt | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git add resolvers.txt | |
git commit -m "Update resolvers" -a | |
git push "https://janmasarik:${{ secrets.GITHUB_PERSONAL_TOKEN }}@github.com/janmasarik/resolvers.git" HEAD:master --follow-tags |