Skip to content

NordVPN IP Updater #231

NordVPN IP Updater

NordVPN IP Updater #231

Workflow file for this run

name: NordVPN IP Updater
on:
schedule:
- cron: '0 */1 * * *' # Runs every 2 hours
workflow_dispatch: # Allows manual trigger
jobs:
update-iocs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install dnspython
pip install requests
- name: Gather Nord VPN Hosts
run: python nordvpn.py
- name: Clean up IPs
run: python nord_vpn_cleanup.py
- name: Subnet Generation
run: python pia_subnet_csv.py
- name: Configure Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "github-actions[bot]"
- name: Commit changes
run: |
git add nordvpn_ips.csv new_nordvpn_ips.csv nord_subnet.csv
git diff-index --quiet HEAD || git commit -m "[AUTO] update of IPs $(date '+%Y-%m-%d %H:%M:%S')"
- name: Push changes
id: push
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}