Netlib Keepalive #4
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: Netlib Keepalive | |
| on: | |
| schedule: | |
| - cron: '0 0 */30 * *' # 每30天运行一次(时间早上8点) | |
| workflow_dispatch: # 允许手动运行 | |
| jobs: | |
| auto_login_netlib: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install Playwright and browser | |
| run: npx playwright install --with-deps chromium | |
| - name: Run lognin script | |
| env: | |
| BOT_TOKEN: ${{ secrets.BOT_TOKEN }} | |
| CHAT_ID: ${{ secrets.CHAT_ID }} | |
| ACCOUNTS: ${{ secrets.ACCOUNTS }} | |
| run: npm start |