Skip to content

Update proxies

Update proxies #2789

Workflow file for this run

name: Update proxies
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *' # to run every hour
permissions:
contents: write
jobs:
update:
name: Update the files
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.TTK }}
author: LogiqueBot
workdir_name: ../workdir
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1 # Fetch all history for git push/rebase
- uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Clean proxies folder
run: rm -rf ${{github.workspace}}/proxies
- name: Run updater
run: python3 updater/updater.py "${{github.workspace}}"
- name: Run checker
run: python3 checker/checker.py
- name: Commit changes
run: |
git config --global user.name "${{ env.author }}"
git config --global user.email "[email protected]"
git add proxies
git commit -a -m "Updated at $(TZ='Asia/Tehran' date '+%Y-%m-%d %H:%M %Z')" --allow-empty
git push --force