Merge pull request #72 from 1andrevich/1andrevich-patch-1
Create build.yml
This commit is contained in:
commit
3a2113bdb9
59
.github/workflows/build.yml
vendored
Normal file
59
.github/workflows/build.yml
vendored
Normal file
@ -0,0 +1,59 @@
|
||||
name: Build domains_all and ipsum
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '0 0 */3 * *' # Runs every 3rd day at midnight UTC
|
||||
|
||||
jobs:
|
||||
run-python-scripts:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.9' # Use the appropriate Python version
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install requests idna
|
||||
|
||||
- name: Prepare directories for build
|
||||
run: |
|
||||
if [ ! -d "sum/input" ]; then mkdir -p sum/input; fi
|
||||
if [ ! -d "sum/output" ]; then mkdir -p sum/output; fi
|
||||
|
||||
- name: Run OONI Parser (ooni_domains.lst)
|
||||
run: python src/step 5 ooni list/ooni_list.py
|
||||
|
||||
##Community.lst and Domains.lst are already in the sum/input folder
|
||||
|
||||
- name: Run Domain Sum Up script (domains_all.lst)
|
||||
run: python src/step 5 ooni list/domain_sum.py
|
||||
|
||||
- name: Run OONI Resolver script (ooni_ips.lst)
|
||||
run: python src/step 5 ooni list/resolver_ooni.py
|
||||
|
||||
- name: Run Community Resolver script (ip_community.lst)
|
||||
run: python src/step 5 ooni list/resolver_community.py
|
||||
|
||||
- name: Run IP Sum (Temp) script (ips_all.lst)
|
||||
run: python src/step 5 ooni list/ip_4files_sum.py
|
||||
|
||||
- name: Run IP Sum + ASN (Final) script (ipsum.lst)
|
||||
run: python src/step 5 ooni list/ipsum_bgp.py
|
||||
|
||||
- name: Run Bird2 Converter script
|
||||
run: python src/step 5 ooni list/bird2_converter.py
|
||||
|
||||
- name: Convert files to LF (Unix format)
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y dos2unix
|
||||
find . -type f -name "*.lst" -exec dos2unix {} +
|
||||
Loading…
x
Reference in New Issue
Block a user