-
-
Notifications
You must be signed in to change notification settings - Fork 24
62 lines (54 loc) · 2 KB
/
KangProxyChecker.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright (C) 2024 officialputuid
name: KangProxyChecker
on:
workflow_dispatch:
jobs:
KangProxyChecker:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: ./
steps:
- uses: actions/checkout@v2
- name: KangProxy - Checker
run: |
wget "${{ secrets.PROXY_CHECKER }}"
unzip ProxyCheker.zip
cat http/http.txt https/https.txt socks4/socks4.txt socks5/socks5.txt > ProxyCheker/proxies.txt
cd ProxyCheker
python3 -m pip install --upgrade pip wheel
pip3 install "setuptools<59"
pip3 install -r requirements.txt
python3 proxy_check.py
- name: KangProxy - Cleaning
run: |
cat ProxyCheker/GoodProxy.txt > ./xResults/RAW.txt
rm -rf ProxyCheker*
cd xResults
grep -v '^$' RAW.txt > fix_RAW.txt && mv fix_RAW* RAW.txt
. clean.sh && mv new_RAW* RAW.txt
- name: Import GPG key
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
- name: GPG user IDs
run: |
echo "fingerprint: ${{ steps.import-gpg.outputs.fingerprint }}"
echo "keyid: ${{ steps.import-gpg.outputs.keyid }}"
echo "name: ${{ steps.import-gpg.outputs.name }}"
echo "email: ${{ steps.import-gpg.outputs.email }}"
- name: Commit +sign commit and push changes
run: |-
git config --global user.email "${{ steps.import-gpg.outputs.email }}"
git config --global user.name "${{ steps.import-gpg.outputs.name }}"
git add .
curl -Lo .git/hooks/commit-msg "${{ secrets.COMMIT_MSG }}"
chmod u+x .git/hooks/commit-msg
timestamp=$(TZ='Asia/Makassar' date '+%d/%m/%y %H:%M %Z')
git commit -m "KangProxy: Validated Proxies ${timestamp} ✅" || exit 0
git push -f