Create hosts files for Exodus Privacy API data #209
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: Create hosts files for Exodus Privacy API data | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: ./exodus | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Create dist directory | |
run: | | |
mkdir -p dist | |
- name: Create hosts file | |
run: | | |
python exodus.py -i https://reports.exodus-privacy.eu.org/api/trackers -o dist/hosts | |
- name: Create IPv4 hosts file | |
run: | | |
python exodus-ipv4.py -i https://reports.exodus-privacy.eu.org/api/trackers -o dist/hosts-ipv4 | |
- name: Commit changes | |
uses: EndBug/add-and-commit@v5.3.0 | |
with: | |
author_name: Marcus Husar | |
author_email: marcus.husar@gmail.com | |
message: 'Update hosts files from Exodus Privacy API data.' | |
add: 'exodus/dist' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |