Auto Key Checker #5070
This file contains hidden or 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: 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: 1 | |
| 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: 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" | |