π Update IP lists #16
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: π Update IP lists | |
on: | |
schedule: | |
- cron: "0 19 * * *" | |
workflow_dispatch: | |
jobs: | |
update_lists: | |
runs-on: ubuntu-latest | |
steps: | |
- name: βοΈ Checkout | |
uses: actions/checkout@v2 | |
- name: π Set up Python3 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.x" | |
- name: βοΈ Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install dnspython | |
pip install aiofiles | |
pip install ipwhois | |
- name: βοΈ Resolve base domains | |
run: | | |
python ./src/generate_base_ip_list.py | |
- name: π Resolve atlanta | |
run: | | |
python ./src/generate_voice_ip_list.py atlanta | |
- name: π Resolve brazil | |
run: | | |
python ./src/generate_voice_ip_list.py brazil | |
- name: π Resolve bucharest | |
run: | | |
python ./src/generate_voice_ip_list.py bucharest | |
- name: π Resolve buenos-aires | |
run: | | |
python ./src/generate_voice_ip_list.py bucharest | |
- name: π Resolve dubai | |
run: | | |
python ./src/generate_voice_ip_list.py dubai | |
- name: π Resolve finland | |
run: | | |
python ./src/generate_voice_ip_list.py finland | |
- name: π Resolve frankfurt | |
run: | | |
python ./src/generate_voice_ip_list.py frankfurt | |
- name: π Resolve hongkong | |
run: | | |
python ./src/generate_voice_ip_list.py hongkong | |
- name: π Resolve india | |
run: | | |
python ./src/generate_voice_ip_list.py india | |
- name: π Resolve japan | |
run: | | |
python ./src/generate_voice_ip_list.py japan | |
- name: π Resolve madrid | |
run: | | |
python ./src/generate_voice_ip_list.py madrid | |
- name: π Resolve milan | |
run: | | |
python ./src/generate_voice_ip_list.py milan | |
- name: π Resolve newark | |
run: | | |
python ./src/generate_voice_ip_list.py newark | |
- name: π Resolve rotterdam | |
run: | | |
python ./src/generate_voice_ip_list.py rotterdam | |
- name: π Resolve russia | |
run: | | |
python ./src/generate_voice_ip_list.py russia | |
- name: π Resolve santa-clara | |
run: | | |
python ./src/generate_voice_ip_list.py santa-clara | |
- name: π Resolve santiago | |
run: | | |
python ./src/generate_voice_ip_list.py santiago | |
- name: π Resolve seattle | |
run: | | |
python ./src/generate_voice_ip_list.py seattle | |
- name: π Resolve singapore | |
run: | | |
python ./src/generate_voice_ip_list.py singapore | |
- name: π Resolve south-korea | |
run: | | |
python ./src/generate_voice_ip_list.py south-korea | |
- name: π Resolve southafrica | |
run: | | |
python ./src/generate_voice_ip_list.py southafrica | |
- name: π Resolve stage-scale | |
run: | | |
python ./src/generate_voice_ip_list.py stage-scale | |
- name: π Resolve stockholm | |
run: | | |
python ./src/generate_voice_ip_list.py stockholm | |
- name: π Resolve sydney | |
run: | | |
python ./src/generate_voice_ip_list.py sydney | |
- name: π Resolve tel-aviv | |
run: | | |
python ./src/generate_voice_ip_list.py tel-aviv | |
- name: π Resolve us-central | |
run: | | |
python ./src/generate_voice_ip_list.py us-central | |
- name: π Resolve us-east | |
run: | | |
python ./src/generate_voice_ip_list.py us-east | |
- name: π Resolve us-south | |
run: | | |
python ./src/generate_voice_ip_list.py us-south | |
- name: π Resolve us-west | |
run: | | |
python ./src/generate_voice_ip_list.py us-west | |
- name: π Resolve warsaw | |
run: | | |
python ./src/generate_voice_ip_list.py warsaw | |
- name: π Resolve st-pete | |
run: | | |
python ./src/generate_voice_ip_list.py st-pete | |
- name: π Resolve dammam | |
run: | | |
python ./src/generate_voice_ip_list.py dammam | |
- name: π Resolve jakarta | |
run: | | |
python ./src/generate_voice_ip_list.py jakarta | |
- name: π Resolve montreal | |
run: | | |
python ./src/generate_voice_ip_list.py montreal | |
- name: π Resolve oregon | |
run: | | |
python ./src/generate_voice_ip_list.py oregon | |
- name: π Generating configurations | |
run: | | |
python ./src/generate_singlefiles.py | |
- name: π Recognizing CIDRs | |
run: | | |
python ./src/generate_cidr_list.py | |
- name: π« Commit the changes | |
run: | | |
git config --global user.name "github-actions" | |
git config --global user.email "[email protected]" | |
git add -A | |
git commit -m "[bot] Automatic update of lists ($(date -u +'%m/%d/%y %H:%M:%S UTC'))" | |
git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main |