Skip to content

Commit

Permalink
240429-新增家庭签到任务,显示任务完成后网盘容量信息
Browse files Browse the repository at this point in the history
  • Loading branch information
wesl authored and wesl committed Apr 29, 2024
1 parent 60b7a56 commit d165538
Show file tree
Hide file tree
Showing 8 changed files with 448 additions and 274 deletions.
77 changes: 36 additions & 41 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,44 +12,39 @@ jobs:
runs-on: ubuntu-latest
environment: user
steps:
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 14
- name: init
run: npm install
- name: run
id: run
uses: nick-fields/retry@v2
env:
TY_USER_NAME: ${{secrets.TY_USER_NAME}}
TY_PASSWORD: ${{secrets.TY_PASSWORD}}
TY_FAMILY_ID: ${{secrets.TY_FAMILY_ID}}
TY_USER_NAME1: ${{secrets.TY_USER_NAME1}}
TY_PASSWORD1: ${{secrets.TY_PASSWORD1}}
TY_FAMILY_ID1: ${{secrets.TY_FAMILY_ID1}}
TY_USER_NAME2: ${{secrets.TY_USER_NAME2}}
TY_PASSWORD2: ${{secrets.TY_PASSWORD2}}
TY_FAMILY_ID2: ${{secrets.TY_FAMILY_ID2}}
TY_USER_NAME3: ${{secrets.TY_USER_NAME3}}
TY_PASSWORD3: ${{secrets.TY_PASSWORD3}}
TY_FAMILY_ID3: ${{secrets.TY_FAMILY_ID3}}
TY_USER_NAME4: ${{secrets.TY_USER_NAME4}}
TY_PASSWORD4: ${{secrets.TY_PASSWORD4}}
TY_FAMILY_ID4: ${{secrets.TY_FAMILY_ID4}}
# Server
SENDKEY: ${{secrets.SENDKEY}}
# Telegram
TELEGRAM_BOT_TOKEN: ${{secrets.TELEGRAM_BOT_TOKEN}}
TELEGRAM_CHAT_ID: ${{secrets.TELEGRAM_CHAT_ID}}
# WecomBot
WECOM_BOT_KEY: ${{secrets.WECOM_BOT_KEY}}
WECOM_BOT_TELPHONE: ${{secrets.WECOM_BOT_TELPHONE}}
# WxPusher
WX_PUSHER_APP_TOKEN : ${{secrets.WX_PUSHER_APP_TOKEN}}
WX_PUSHER_UID: ${{secrets.WX_PUSHER_UID}}
with:
timeout_minutes: 10
max_attempts: 3
command: npm start
- uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 14
- name: init
run: npm install
- name: run
id: run
uses: nick-fields/retry@v2
env:
TY_USER_NAME: ${{secrets.TY_USER_NAME}}
TY_PASSWORD: ${{secrets.TY_PASSWORD}}
TY_USER_NAME1: ${{secrets.TY_USER_NAME1}}
TY_PASSWORD1: ${{secrets.TY_PASSWORD1}}
TY_USER_NAME2: ${{secrets.TY_USER_NAME2}}
TY_PASSWORD2: ${{secrets.TY_PASSWORD2}}
TY_USER_NAME3: ${{secrets.TY_USER_NAME3}}
TY_PASSWORD3: ${{secrets.TY_PASSWORD3}}
TY_USER_NAME4: ${{secrets.TY_USER_NAME4}}
TY_PASSWORD4: ${{secrets.TY_PASSWORD4}}
# Server
SENDKEY: ${{secrets.SENDKEY}}
# Telegram
TELEGRAM_BOT_TOKEN: ${{secrets.TELEGRAM_BOT_TOKEN}}
TELEGRAM_CHAT_ID: ${{secrets.TELEGRAM_CHAT_ID}}
# WecomBot
WECOM_BOT_KEY: ${{secrets.WECOM_BOT_KEY}}
WECOM_BOT_TELPHONE: ${{secrets.WECOM_BOT_TELPHONE}}
# WxPusher
WX_PUSHER_APP_TOKEN: ${{secrets.WX_PUSHER_APP_TOKEN}}
WX_PUSHER_UID: ${{secrets.WX_PUSHER_UID}}
with:
timeout_minutes: 10
max_attempts: 3
command: npm start
43 changes: 22 additions & 21 deletions accounts.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
module.exports = [{
userName: process.env.TY_USER_NAME || 'userName',
password: process.env.TY_PASSWORD || 'password',
familyId: process.env.TY_FAMILY_ID
}, {
userName: process.env.TY_USER_NAME1,
password: process.env.TY_PASSWORD1,
familyId: process.env.TY_FAMILY_ID1
}, {
userName: process.env.TY_USER_NAME2,
password: process.env.TY_PASSWORD2,
familyId: process.env.TY_FAMILY_ID2
}, {
userName: process.env.TY_USER_NAME3,
password: process.env.TY_PASSWORD3,
familyId: process.env.TY_FAMILY_ID3
}, {
userName: process.env.TY_USER_NAME4,
password: process.env.TY_PASSWORD4,
familyId: process.env.TY_FAMILY_ID4
}];
module.exports = [
{
userName: process.env.TY_USER_NAME || "userName",
password: process.env.TY_PASSWORD || "password",
},
{
userName: process.env.TY_USER_NAME1,
password: process.env.TY_PASSWORD1,
},
{
userName: process.env.TY_USER_NAME2,
password: process.env.TY_PASSWORD2,
},
{
userName: process.env.TY_USER_NAME3,
password: process.env.TY_PASSWORD3,
},
{
userName: process.env.TY_USER_NAME4,
password: process.env.TY_PASSWORD4,
},
];
Loading

0 comments on commit d165538

Please sign in to comment.