Proxy Check #2244
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: Proxy Check | |
on: | |
schedule: | |
- cron: "*/5 * * * *" # Run every 5 mins | |
workflow_dispatch: | |
concurrency: | |
group: test-proxies | |
jobs: | |
check_proxies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Fetch remote repo files | |
run: | | |
git clone https://github.com/zloi-user/hideip.me temp_repo | |
mv temp_repo/*.txt ./ | |
rm -rf temp_repo | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests[socks] | |
- name: Run proxy checker | |
run: python proxy_checker.py | |
- name: Commit and Push Updates | |
run: | | |
git config user.name "github-actions" | |
git config user.email "[email protected]" | |
git add proxy_check_results_*.md | |
git commit -m "Update proxy reports" | |
git push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |