-
Notifications
You must be signed in to change notification settings - Fork 10
43 lines (34 loc) · 976 Bytes
/
updater.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
name: Proxy Updater
on:
schedule:
- cron: '0 */4 * * *'
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install jq
run: |
sudo apt-get install -y jq
- name: Scrape Proxies
continue-on-error: true
run: |
rm -rf anonymous-proxylist proxylist
chmod +x src/scraper.sh
sh src/scraper.sh
- name: Push Updated Proxies
continue-on-error: true
run: |
git config --local user.email ${{ secrets.GIT_EMAIL }}
git config --local user.name ${{ secrets.GIT_NAME }}
git add proxylist anonymous-proxylist
git commit -am "Updated Proxies : $(TZ='Asia/Dhaka' date)"
- name: Push Changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_TOKEN }}