Daily TorGuard VPN Servers Feed #240
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: Daily TorGuard VPN Servers Feed | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" # Runs at 00:00 AM (UTC) everyday (Check https://crontab.guru/#0_0_*_*_*) | |
jobs: | |
download-torguardvpnservers: | |
name: Download TorGuard VPN Servers via config file | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🍽️ Checkout the repo | |
uses: actions/checkout@v3 | |
with: | |
path: master | |
fetch-depth: 0 | |
- name: 🐍 Set up Python 3.8 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.8" | |
architecture: "x64" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pandas | |
- name: 🚀 Run automation script | |
run: python master/.script/get-torguardvpnservers.py | |
- name: Commit files | |
run: | | |
cd master | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git add * | |
git commit -m "Adding new TorGuard vpn servers daily feed" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
directory: "master" |