forked from eooce/Auto-login-netlib
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 752 Bytes
/
login.yml
File metadata and controls
31 lines (25 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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