Skip to content

Commit 4cd5726

Browse files
committed
1 parent f4357c8 commit 4cd5726

6 files changed

Lines changed: 61 additions & 10 deletions

File tree

‎.github/workflows/dianshijia.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
if: github.event.repository.owner.id == github.event.sender.id
14+
env:
15+
DSJ_HEADERS: ${{ secrets.DSJ_HEADERS }}
16+
DSJ_DRAWAL: ${{ secrets.DSJ_DRAWAL }}
1417
steps:
1518
- uses: actions/checkout@v1
1619
- name: Use Node.js 10.x
1720
uses: actions/setup-node@v1
1821
with:
1922
node-version: 10.x
2023
- name: npm install
24+
if: env.DSJ_HEADERS
2125
run: |
2226
npm install
2327
- name: '运行 【电视家】'
2428
run: |
2529
node Task/dianshijia.js
2630
env:
27-
DSJ_HEADERS: ${{ secrets.DSJ_HEADERS }}
28-
DSJ_DRAWAL: ${{ secrets.DSJ_DRAWAL }}
2931
DSJ_NOTIFY_CONTROL: ${{ secrets.DSJ_NOTIFY_CONTROL }}
3032
PUSH_KEY: ${{ secrets.PUSH_KEY }}
3133
BARK_PUSH: ${{ secrets.BARK_PUSH }}

‎.github/workflows/jingxi.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,22 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
if: github.event.repository.owner.id == github.event.sender.id
14+
env:
15+
JD_COOKIE: ${{ secrets.JD_COOKIE }}
1416
steps:
1517
- uses: actions/checkout@v1
1618
- name: Use Node.js 10.x
1719
uses: actions/setup-node@v1
1820
with:
1921
node-version: 10.x
2022
- name: npm install
23+
if: env.JD_COOKIE
2124
run: |
2225
npm install
2326
- name: '运行 【京喜】'
2427
run: |
2528
node Task/jingxi.js
2629
env:
27-
JD_COOKIE: ${{ secrets.JD_COOKIE }}
2830
PUSH_KEY: ${{ secrets.PUSH_KEY }}
2931
BARK_PUSH: ${{ secrets.BARK_PUSH }}
3032
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}

‎.github/workflows/midu_read.yml‎

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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
3+
4+
name: midu_read
5+
6+
on:
7+
workflow_dispatch:
8+
schedule:
9+
- cron: '*/6 1-18 * * *'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
env:
15+
TXNEWS_SIGN: ${{ secrets.TXNEWS_SIGN }}
16+
TXNEWS_COOKIE: ${{ secrets.TXNEWS_COOKIE }}
17+
TXNEWS_VIDEO: ${{ secrets.TXNEWS_VIDEO }}
18+
steps:
19+
- uses: actions/checkout@v1
20+
- name: Use Node.js 10.x
21+
uses: actions/setup-node@v1
22+
with:
23+
node-version: 10.x
24+
- name: npm install
25+
run: |
26+
npm install
27+
- name: '运行 【米读自动阅读】'
28+
run: |
29+
node Task/midu_Read.js
30+
env:
31+
MIDU_COOKIE: ${{ secrets.MIDU_COOKIE }}
32+
MIDU_BODY: ${{ secrets.MIDU_BODY }}
33+
MIDU_DRAW: ${{ secrets.MIDU_DRAW }}
34+
PUSH_KEY: ${{ secrets.PUSH_KEY }}
35+
BARK_PUSH: ${{ secrets.BARK_PUSH }}
36+
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}
37+
TG_USER_ID: ${{ secrets.TG_USER_ID }}
38+
BARK_SOUND: ${{ secrets.BARK_SOUND }}
39+
40+
41+

‎.github/workflows/weibo.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,23 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
if: github.event.repository.owner.id == github.event.sender.id
14+
env:
15+
WB_TOKEN: ${{ secrets.WB_TOKEN }}
16+
WB_PAY: ${{ secrets.WB_PAY }}
1417
steps:
1518
- uses: actions/checkout@v1
1619
- name: Use Node.js 10.x
1720
uses: actions/setup-node@v1
1821
with:
1922
node-version: 10.x
2023
- name: npm install
24+
if: env.WB_TOKEN
2125
run: |
2226
npm install
2327
- name: '运行 【新浪微博】'
2428
run: |
2529
node Task/weibo.js
2630
env:
27-
WB_TOKEN: ${{ secrets.WB_TOKEN }}
28-
WB_PAY: ${{ secrets.WB_PAY }}
2931
PUSH_KEY: ${{ secrets.PUSH_KEY }}
3032
BARK_PUSH: ${{ secrets.BARK_PUSH }}
3133
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}

‎.github/workflows/youth.yml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,25 @@ jobs:
1414
build:
1515
runs-on: ubuntu-latest
1616
if: github.event.repository.owner.id == github.event.sender.id
17+
env:
18+
YOUTH_HEADER: ${{ secrets.YOUTH_HEADER }}
19+
YOUTH_ARTBODY: ${{ secrets.YOUTH_ARTBODY }}
20+
YOUTH_REDBODY: ${{ secrets.YOUTH_REDBODY }}
21+
YOUTH_TIME: ${{ secrets.YOUTH_TIME }}
1722
steps:
1823
- uses: actions/checkout@v1
1924
- name: Use Node.js 10.x
2025
uses: actions/setup-node@v1
2126
with:
2227
node-version: 10.x
2328
- name: npm install
29+
if: env.YOUTH_HEADER
2430
run: |
2531
npm install
2632
- name: '运行 【中青看点】'
2733
run: |
2834
node Task/youth.js
2935
env:
30-
YOUTH_HEADER: ${{ secrets.YOUTH_HEADER }}
31-
YOUTH_ARTBODY: ${{ secrets.YOUTH_ARTBODY }}
32-
YOUTH_REDBODY: ${{ secrets.YOUTH_REDBODY }}
33-
YOUTH_TIME: ${{ secrets.YOUTH_TIME }}
3436
YOUTH_NOTIFY_CONTROL: ${{ secrets.YOUTH_NOTIFY_CONTROL }}
3537
PUSH_KEY: ${{ secrets.PUSH_KEY }}
3638
BARK_PUSH: ${{ secrets.BARK_PUSH }}

‎.github/workflows/youth_read.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,22 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515
if: github.event.repository.owner.id == github.event.sender.id
16+
env:
17+
YOUTH_READ: ${{ secrets.YOUTH_READ }}
1618
steps:
1719
- uses: actions/checkout@v1
1820
- name: Use Node.js 10.x
1921
uses: actions/setup-node@v1
2022
with:
2123
node-version: 10.x
2224
- name: npm install
25+
if: env.YOUTH_READ
2326
run: |
2427
npm install
2528
- name: '运行 【中青看点自动阅读】'
2629
run: |
2730
node Task/Youth_Read.js
2831
env:
29-
YOUTH_READ: ${{ secrets.YOUTH_READ }}
3032
PUSH_KEY: ${{ secrets.PUSH_KEY }}
3133
BARK_PUSH: ${{ secrets.BARK_PUSH }}
3234
TG_BOT_TOKEN: ${{ secrets.TG_BOT_TOKEN }}

0 commit comments

Comments
 (0)