-
Notifications
You must be signed in to change notification settings - Fork 29
44 lines (37 loc) · 1.22 KB
/
torguardvpn-feed.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
41
42
43
44
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"