-
Notifications
You must be signed in to change notification settings - Fork 2
40 lines (35 loc) · 1.01 KB
/
exodus-hosts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 }}