检测Serv00开放注册 #50
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
| # .github/workflows/check.yml | |
| name: 检测Serv00开放注册 | |
| on: | |
| schedule: | |
| - cron: '0 23 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run checker script | |
| # 核心改动:将环境变量换成 BARK_KEY | |
| env: | |
| BARK_KEY: ${{ secrets.BARK_KEY }} | |
| BARK_SERVER_URL: ${{ secrets.BARK_SERVER_URL }} | |
| run: python checker.py |