KangProxyChecker #4073
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
# 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 |