Skip to content

Commit d914f24

Browse files
committed
1 parent 1587bfe commit d914f24

1 file changed

Lines changed: 17 additions & 29 deletions

File tree

‎.github/workflows/jd_starStore.yml‎

Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,36 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
31

4-
name: 京东星店长
2+
name: 星店长
53

64
on:
75
workflow_dispatch:
86
schedule:
9-
- cron: '5 1 * * * '
7+
- cron: '5 5 * * *'
108
watch:
119
types: started
12-
1310
jobs:
1411
build:
15-
1612
runs-on: ubuntu-latest
1713
if: github.event.repository.owner.id == github.event.sender.id
14+
env:
15+
JD_COOKIE: ${{ secrets.JD_COOKIE }}
1816
steps:
1917
- uses: actions/checkout@v1
20-
- name: Use Node.js 10.x
18+
- name: Use Node.js 12.x
2119
uses: actions/setup-node@v1
2220
with:
23-
node-version: 10.x
21+
node-version: 12.x
2422
- name: npm install
2523
run: |
2624
npm install
27-
npm install request
28-
npm install --save got
29-
npm install tough-cookie
30-
- name: '京东星店长'
31-
env:
32-
COOKIE: ${{secrets.JD_COOKIE}}
33-
TG_BOT_TOKEN : ${{secrets.TG_BOT_TOKEN}}
34-
TG_USER_ID : ${{secrets.TG_USER_ID}}
35-
REMOTE_URL: https://raw.githubusercontent.com/yangtingxiao/QuantumultX/master/scripts/jd/jd_starStore.js
36-
MULT_CUSTOM_REPLACE: '[[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-YTX'')"}],
37-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-SR'')"}],
38-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-LJ'')"}],
39-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-ZGX'')"}],
40-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-WJY'')"}],
41-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-LJ2'')"}],
42-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-RQ'')"}],
43-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-WRX'')"}],
44-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-GC'')"}],
45-
[{key : /const \$.+\(''(.+)''\);/,value : "const $ = new Env(''$1-WSR'')"}]
46-
]'
25+
- name: '运行 【京东星店长】'
26+
if: env.JD_COOKIE
4727
run: |
48-
node 'scripts/remote/runRemoteScripts.js'
28+
node Task/jd_starStore.js
29+
env:
30+
PUSH_KEY: ${{ secrets.PUSH_KEY }}
31+
BARK_PUSH: ${{ secrets.BARK_PUSH }}
32+
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
33+
TG_USER_ID: ${{ secrets.TG_USER_ID }}
34+
BARK_SOUND: ${{ secrets.BARK_SOUND }}
35+
DD_BOT_TOKEN: ${{ secrets.DD_BOT_TOKEN }}
36+
DD_BOT_SECRET: ${{ secrets.DD_BOT_SECRET }}

0 commit comments

Comments
 (0)