Skip to content

Auto Key Checker

Auto Key Checker #5078

Workflow file for this run

name: Auto Key Checker
on:
schedule:
- cron: '0 */6 * * *' # каждые 6 часов
workflow_dispatch:
permissions:
contents: write
jobs:
check-keys:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0 # важно: полный history, чтобы работал rebase
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
cache: 'pip'
- name: Install Dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Update githubmirror (mirror.py)
run: python mirror.py
timeout-minutes: 30
env:
PYTHONUNBUFFERED: '1'
- name: Run Checker Script
run: python main.py
timeout-minutes: 45
env:
PYTHONUNBUFFERED: '1'
- name: Sync with remote (rebase)
run: |
git config user.name "GitHub Actions Bot"
git config user.email "actions@github.com"
git pull --rebase origin main || true
- name: Commit & Push Results
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "🤖 Auto-update keys & githubmirror"
file_pattern: "."
commit_user_name: "GitHub Actions Bot"
commit_user_email: "actions@github.com"